* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333333;
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar-header {
    padding: 0 24px 24px 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

button.nav-item {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

#navInfringementsSubnav {
    overflow: hidden;
}

.nav-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.nav-item[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.nav-item.active {
    background-color: #eff6ff;
    color: #2563eb;
}

.nav-icon {
    flex-shrink: 0;
}

.sidebar-nav-sub {
    padding-left: 16px;
    margin-top: -4px;
}

.nav-item-sub {
    font-size: 13px;
    padding: 8px 16px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 24px 32px;
    background-color: #ffffff;
    max-width: 1200px;
}

.content-header {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.refresh-btn {
    padding: 8px 16px;
    background-color: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background-color: #e5e7eb;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 13px;
    color: #6b7280;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.file-input-wrapper {
    position: relative;
}

#pdfFile {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 110px;
}

.file-label:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.file-label.dragover {
    border-color: #3b82f6;
    background-color: #dbeafe;
    border-style: solid;
}

.upload-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 3px;
}

.upload-subtitle {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 8px;
    text-align: center;
    padding: 0 8px;
}

.upload-icon {
    color: #9ca3af;
    margin-bottom: 6px;
    width: 28px;
    height: 28px;
    transition: color 0.3s ease;
}

.file-label:hover .upload-icon {
    color: #3b82f6;
}

.file-text {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 3px;
    text-align: center;
}

.file-hint {
    font-size: 10px;
    color: #9ca3af;
}

.file-info {
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    color: #e74c3c;
    flex-shrink: 0;
}

#fileName {
    flex: 1;
    font-size: 12px;
    color: #333333;
    word-break: break-all;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.remove-btn:hover {
    color: #e74c3c;
}

.submit-btn {
    padding: 8px 16px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 140px;
    align-self: flex-start;
}

.submit-btn:hover:not(:disabled) {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

.status-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: left;
    max-width: 320px;
}

.status-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-message.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Summary Container */
.summary-container {
    margin-top: 24px;
    padding: 16px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-width: 500px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.close-summary {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-summary:hover {
    color: #111827;
}

.summary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.stat-value.success {
    color: #059669;
}

.stat-value.error {
    color: #dc2626;
}

.letters-list h4 {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.letter-card {
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
}

.letter-card.error {
    border-color: #fecaca;
    background-color: #fef2f2;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.letter-name {
    font-weight: 600;
    color: #111827;
}

.letter-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.letter-status.segregated {
    background-color: #d1fae5;
    color: #065f46;
}

.letter-status.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.letter-info {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.letter-error {
    font-size: 11px;
    color: #dc2626;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #fecaca;
}

/* Uploads Page Styles */
.loading-message {
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.loading-message.error {
    color: #dc2626;
}

.empty-message {
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.batches-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.batch-card {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.batch-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.batch-date {
    font-size: 12px;
    color: #6b7280;
}

.batch-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.batch-status.processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.batch-status.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.batch-status.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.batch-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.batch-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.batch-stats .stat-label {
    font-size: 12px;
    color: #6b7280;
}

.batch-stats .stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.batch-stats .stat-value.success {
    color: #059669;
}

.batch-stats .stat-value.error {
    color: #dc2626;
}

.letters-section {
    margin-top: 20px;
}

.letters-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.letter-item {
    padding: 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
}

.letter-item.error {
    border-color: #fecaca;
    background-color: #fef2f2;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.letter-status-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.letter-status-badge.segregated {
    background-color: #d1fae5;
    color: #065f46;
}

.letter-status-badge.error {
    background-color: #fee2e2;
    color: #991b1b;
}

.letter-detail {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

.letter-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.download-btn {
    padding: 6px 12px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #1d4ed8;
}

.chat-btn {
    padding: 6px 12px;
    background-color: #059669;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-btn:hover {
    background-color: #047857;
}

.send-letter-btn {
    padding: 6px 12px;
    background-color: #7c3aed;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.send-letter-btn:hover:not(:disabled) {
    background-color: #6d28d9;
}

.send-letter-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Batch Actions */
.batch-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.segregate-btn {
    padding: 10px 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.segregate-btn:hover:not(:disabled) {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.segregate-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.segregate-btn.processing {
    background-color: #f59e0b;
    animation: pulse 1.5s ease-in-out infinite;
}

.segregate-btn.success {
    background-color: #059669;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.letter-error {
    font-size: 11px;
    color: #dc2626;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #fecaca;
}

/* Responsive design */
@media (max-width: 1024px) {
    .main-content {
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .file-label {
        padding: 20px 16px;
        min-height: 120px;
    }
    
    .upload-title {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .nav-item {
        white-space: nowrap;
    }
    
    .main-content {
        padding: 16px 12px;
    }
}

/* Welcome Card */
.welcome-card {
    padding: 32px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-width: 600px;
    margin-top: 24px;
}

.welcome-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* Admin Chat Modal */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.chat-modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Official Correspondence Header */
.correspondence-header {
    background: #f9fafb;
    border-bottom: 2px solid #1f2937;
    padding: 1.5rem;
}

.correspondence-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.correspondence-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.correspondence-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
}

.legally-recorded-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Correspondence Metadata */
.correspondence-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metadata-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metadata-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}

.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.chat-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.chat-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.chat-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.close-discussion-btn {
    padding: 6px 12px;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.close-discussion-btn:hover:not(:disabled) {
    background-color: #b91c1c;
}

.close-discussion-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.chat-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.driver {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message.admin {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-message.assistant {
    align-self: flex-start;
    align-items: flex-start;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    word-wrap: break-word;
    line-height: 1.5;
}

.chat-message.driver .message-bubble {
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.admin .message-bubble {
    background: #10b981;
    color: white;
    border-bottom-left-radius: 4px;
}

.chat-message.assistant .message-bubble {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.message-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    font-weight: 500;
}

.message-sender {
    font-weight: 600;
    color: #1f2937;
}

.message-timestamp {
    color: #6b7280;
    margin-left: 0.5rem;
}

/* Chat Input Section */
.chat-input-section {
    border-top: 2px solid #e5e7eb;
    background: white;
    padding: 1rem;
}

.chat-input-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.chat-input-helper {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
    font-style: italic;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
}

.chat-input:focus {
    border-color: #3b82f6;
}

.chat-send-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.chat-send-btn:hover {
    background: #2563eb;
}

.chat-send-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
}

.empty-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Active Infringements List */
.active-letters-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.active-letter-item {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.active-letter-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.active-letter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.active-letter-info {
    flex: 1;
}

.active-letter-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.active-letter-id {
    font-size: 13px;
    color: #6b7280;
}

.active-letter-details {
    margin-bottom: 16px;
}

.active-letter-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.active-letter-batch {
    font-weight: 500;
}

.active-letter-date {
    color: #9ca3af;
}

.active-letter-pages {
    font-size: 12px;
    color: #6b7280;
}

.active-letter-actions {
    display: flex;
    gap: 8px;
}

/* Letter Detail Section Styles (reused from driver page) */
.letter-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-section h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metadata-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.metadata-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
}

.placeholder-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
}

.placeholder-box svg {
    margin-bottom: 1rem;
}

.placeholder-box p {
    margin: 0;
    font-size: 0.875rem;
}

.pdf-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-pdf-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.download-pdf-btn:hover {
    background: #2563eb;
}

.download-pdf-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.download-pdf-btn svg {
    width: 16px;
    height: 16px;
}

/* Signature Pad Styles */
.sign-off-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.sign-off-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sign-off-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sign-off-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.signature-canvas {
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    cursor: crosshair;
    touch-action: none;
    width: 100%;
    height: 150px;
}

.signature-canvas:active {
    border-color: #3b82f6;
}

.signature-debug {
    font-size: 0.75rem;
    color: #6b7280;
    font-family: monospace;
    padding: 0.25rem 0;
    min-height: 1rem;
}

.signature-debug.drawing {
    color: #059669;
    font-weight: 600;
}

.signature-clear-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
}

.signature-clear-btn:hover {
    background: #e5e7eb;
}