/* Modal backdrop and content for address modal (matches job modal) */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1003;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}
.modal-backdrop.show {
    display: flex;
}
.modal-header{
    margin-left: 44px;
}
.modal-content {
    max-width: 480px;
    min-width: 360px;
    width: 90%;
    margin: 0 auto;
    padding: 1em;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    position: relative;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}
.modal-close {
    position: sticky;
    float:right;
    top: 0px;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
}

.modal-close:active {
    background: #d1d5db;
    transform: scale(0.95);
}
/* Drag handle for sortable invoices table */
/* Narrow drag handle for invoices table */
/* Drag handle styles removed: now entire row is draggable */
/* Highlight error fields for invoice form (matches registration form) */
.input-error {
    border: 2px solid #dc3545 !important;
    background: #fff0f0;
    transition: border-color 0.2s;
}
/* Highlight selected invoice row for editing */
.invoice-row-selected {
    background: #e5e7eb !important;
    transition: background 0.15s;
}
/* Invoices Table Layout */

.invoices-table th,
.invoices-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px;
    border: none;
    font-weight: initial;
}
td.invoice-description {
    overflow: visible;
    overflow-wrap: break-word;
    white-space: normal;
}
.invoices-empty {
    text-align: center;
    color: #888;
    padding: 18px 0;
}
.status-badge.status-paid {
    background: #22c55e;
    color: #fff;
    border-radius: 8px;
    padding: 4px 16px;
    font-weight: 600;
    display: inline-block;
}
.status-badge.status-unpaid {
    background: #ef4444;
    color: #fff;
    border-radius: 8px;
    padding: 4px 16px;
    font-weight: 600;
    display: inline-block;
}

/* NEW badge for unread documents */
.document-item {
    position: relative;
}
.new-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #b91c1c;
    color: #fff;
    font-size: 0.60em;
    /* font-weight: bold; */
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
    letter-spacing: 0.04em;
    border: 2px solid #fff;
    text-align: center;
    line-height: 28px;
    user-select: none;
    pointer-events: none;
}
/* Server dashboard status toggle buttons */
.status-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
    padding: 0;
}
.status-toggle-btn:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.12);
}
.status-inactive-icon {
    color: #ef4444;
    font-size: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.status-active-icon {
    color: #059669;
    font-size: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
/* Large hero Material Symbol icon styling */
.hero-icon .hero-symbol.material-symbols-outlined {
    font-size: 120px;
    display: inline-block;
    color: #3182ce;
    vertical-align: middle;
    line-height: 1;
}

body.modal-open {
    pointer-events: none;
    overflow: hidden;
}
#messages-modal, #documents-modal, #invoices-modal {
    pointer-events: auto;
}
/* Verify Email Modal Styles */
.verify-email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.verify-email-modal.show {
    display: flex;
}

.verify-email-form-card {
    position: relative;
    max-width: 420px;
    width: 90%;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 2.5em 2em 2em 2em;
}

.verify-email-form-card-small {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    border-radius: 18px;
    padding: 2.5em 2em 2em 2em;
}

.party-register-modal-card {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    border-radius: 18px;
    padding: 2.5em 2em 2em 2em;
}

/* .verify-email-close removed - now using .registration-modal-close */

.verify-email-header {
    text-align: center;
    margin-bottom: 1.5em;
}

.verify-email-header-small {
    text-align: center;
    margin-bottom: 1.2em;
}

.verify-email-icon {
    background: #e0e7ff;
    color: #3182ce;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
    font-size: 2.2em;
}

.verify-email-icon-small {
    background: #e0e7ff;
    color: #2563eb;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7em;
    font-size: 2em;
}

.verify-email-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #1a202c;
}

.verify-email-title-small {
    font-size: 1.35em;
    font-weight: 700;
    margin-bottom: 0.3em;
}

.verify-email-subtitle {
    font-size: 1.1em;
    color: #4a5568;
    margin-bottom: 0px;
}

.verify-email-subtitle-small {
    font-size: 1.08em;
    color: #444;
    margin-bottom: 0.7em;
}

.verify-email-address-bold {
    font-weight: 600;
    color: #222;
}

.verify-email-address {
    font-weight: 600;
    color: #2d3748;
}

.verify-code-container {
    display: flex;
    gap: 0.8em;
    justify-content: center;
    margin: 1.5em 0;
}

.verify-code-container-small {
    display: flex;
    gap: 0.7em;
    justify-content: center;
    margin-bottom: 1em;
}

.verify-code-input {
    width: 52px !important;
    height: 64px !important;
    font-size: 2.2em !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #1a202c !important;
    outline: none !important;
    cursor: text !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.verify-code-input:focus {
    border-color: #3182ce !important;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
    background: #ffffff !important;
}

.verify-code-input:hover {
    border-color: #cbd5e0 !important;
}

.verify-email-instruction {
    text-align: center;
    color: #718096;
    font-size: 1em;
    margin-bottom: 1.5em;
}

.verify-email-instruction-small {
    text-align: center;
    color: #555;
    font-size: 0.98em;
    margin-bottom: 1.2em;
}

.verify-email-submit {
    width: 100%;
    font-size: 1.15em;
    font-weight: 600;
    padding: 1em 0;
    border-radius: 10px;
    background: #3182ce;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 1em;
    transition: background 0.2s ease;
}

.verify-email-submit:hover {
    background: #2c5aa0;
}

.verify-email-submit:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.verify-email-resend {
    text-align: center;
    color: #4a5568;
    font-size: 1em;
    margin-top: 1em;
}

.verify-email-resend a {
    color: #3182ce;
    font-weight: 600;
    text-decoration: none;
}

.verify-email-resend a:hover {
    text-decoration: underline;
}

.verify-email-message {
    margin-top: 1em;
    text-align: center;
    font-weight: 500;
}

.verify-email-back {
    text-align: left;
    margin-bottom: 1.5em;
}

.verify-email-back a {
    color: #3182ce;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.verify-email-back a:hover {
    text-decoration: underline;
}

/* Registration Modal Styles */
.registration-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.registration-modal.show {
    display: flex;
}

.registration-modal-card {
    position: relative;
    max-width: 480px;
    min-width: 360px;
    width: 90%;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    border-radius: 18px;
    padding: 1em;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    
    /* Narrow scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Custom narrow scrollbar for Webkit browsers */
.registration-modal-card::-webkit-scrollbar {
    width: 8px;
}

.registration-modal-card::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.registration-modal-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.registration-modal-card::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.registration-modal-close {
    position: sticky;
    float: right;
    top: 0px;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 10;
}

.registration-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
}

.registration-modal-close:active {
    background: #d1d5db;
    transform: scale(0.95);
}

.registration-modal-title {
    text-align: center;
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 0.2em 44px;
    color: #1a202c;
    text-transform: uppercase;
}

.registration-modal-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.15em;
    margin-bottom: 0px;
}

.registration-modal-title-large {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.registration-modal-subtitle-large {
    text-align: center;
    color: #444;
    font-size: 1.15em;
    margin-bottom: 1.5em;
}

.registration-form-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1em;
    max-width: 800px;
    margin: 0 auto 1em auto;
}

.registration-form-row {
    display: flex;
    gap: 1.5em;
    margin-bottom: 1em;
}

.registration-form-col-full {
    flex: 1;
}

.registration-form-col-wrapper {
    flex: 1;
}

.registration-form-col {
    flex: 1;
}

.registration-form label {
    display: block;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95em;
}

/* First label in form should not have top margin */
.registration-form > label:first-of-type,
.registration-form-row:first-child label {
    margin-top: 0;
}

/* Labels inside form rows should not have top margin since the row handles spacing */
.registration-form-row label {
    margin-top: 0;
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"],
.registration-form input[type="date"],
.registration-form input[type="number"],
.registration-form select {
    width: 100%;
    padding: 0.75em;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 400;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 1em;
}

/* Terms acceptance checkbox styling */
.terms-checkbox-container {
    margin: 1em 0;
    display: none; /* Hidden by default, shown only for new registrations */
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    cursor: pointer;
    font-weight: 400;
    color: #2d3748;
    font-size: 0.95em;
    line-height: 1.5;
}

.terms-checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 0.2em;
    cursor: pointer;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.terms-checkbox-label span {
    flex: 1;
}

/* Remove bottom margin from inputs inside form rows since row handles spacing */
.registration-form-row input[type="text"],
.registration-form-row input[type="email"],
.registration-form-row input[type="password"],
.registration-form-row input[type="date"],
.registration-form-row input[type="number"],
.registration-form-row select {
    margin-bottom: 0;
}

.registration-form input[type="text"]:focus,
.registration-form input[type="email"]:focus,
.registration-form input[type="password"]:focus,
.registration-form input[type="date"]:focus,
.registration-form input[type="number"]:focus,
.registration-form select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.registration-form select {
    cursor: pointer;
}

.registration-form select:disabled {
    background-color: #f7fafc;
    color: #4a5568;
    cursor: not-allowed;
}

/* Textarea styling */
.registration-form textarea {
    width: 100%;
    padding: 0.75em;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 400;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.registration-form textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Notes form specific styling */
.notes-form-container {
    margin-top: 1em;
}

/* Attorney form specific styling - matches notes form */
.attorney-form-container {
    margin-top: 1em;
}

.notes-date-time-row {
    display: flex;
    gap: 0.5em;
    align-items: center;
    margin-bottom: 1em;
}

.notes-date-time-row input[type="date"],
#new-note-date,
.edit-note-date {
    width: 130px !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    padding: 0.5em !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
    height: auto !important;
}

.notes-time-input-group {
    display: flex;
    gap: 0.25em;
    align-items: center;
}

.notes-time-input-group input[type="number"],
.notes-time-input-group select,
#new-note-hour,
#new-note-minute,
#new-note-ampm,
.edit-note-hour,
.edit-note-minute,
.edit-note-ampm {
    margin-bottom: 0 !important;
    font-size: 14px !important;
    padding: 0.5em !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
    height: auto !important;
}

.notes-time-input-group input[type="number"],
#new-note-hour,
#new-note-minute,
.edit-note-hour,
.edit-note-minute {
    width: 75px !important;
    text-align: center !important;
}

.notes-time-input-group select,
#new-note-ampm,
.edit-note-ampm {
    width: 75px !important;
}

.notes-time-input-group span {
    color: #4a5568;
}

/* Notes form textarea */
.notes-form-container textarea {
    width: 100%;
}

.notes-form-container .submit-button {
    width: 100%;
}

/* Notes table styling - single column, two rows per note */
.notes-table {
    width: 100%;
    border-collapse: collapse;
}

.notes-table td {
    text-align: left;
    padding: 0.75em 1em;
    border: none;
}

/* Left border only within each note group */
.notes-table .note-datetime-row td,
.notes-table .note-text-row td {
    border-left: 4px solid #3498db; /* Left border to group date with note */
}

.notes-table .note-datetime-row {
    background-color: #f8f9fa; /* Darker zebra stripe - gray */
    font-weight: 600;
    color: #495057;
}

.notes-table .note-datetime-row td {
    border-top-left-radius: 4px; /* Round top corner */
    padding-top: 0.75em;
}

/* First datetime row - normal spacing */
.notes-table tbody > .note-datetime-row:first-child td {
    padding-top: 0.75em;
}

/* Add space between note groups - only on datetime rows that follow text rows */
.notes-table .note-text-row + .note-datetime-row td {
    border-top: 1em solid white; /* Creates white gap that breaks the border */
}

.notes-table .note-text-row {
    background-color: #ffffff; /* White background */
}

.notes-table .note-text-row td {
    border-bottom-left-radius: 4px; /* Round bottom corner */
    padding-bottom: 0.75em;
}

.note-text-cell {
    text-align: left;
}

.note-row-clickable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.note-row-clickable:hover {
    opacity: 0.8;
}

/* Note form buttons */
.note-form-buttons {
    display: flex;
    gap: 0.5em;
    align-items: center; /* Vertically center all buttons */
    margin-top: 1em;
}

.note-form-buttons .submit-button {
    flex: 1;
    margin-top: 0 !important; /* Override default submit-button margin */
    height: 44px; /* Match height of round buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1em; /* Horizontal padding only */
}

#note-edit-actions {
    display: flex;
    gap: 0.5em;
    align-items: center; /* Vertically center cancel and delete buttons */
}


/* Radio button group styling */
.registration-form .radio-group {
    margin-bottom: 1em;
    margin-top: 0.5em;
}

.registration-form .radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
    margin-top: 0;
    font-weight: 400;
    cursor: pointer;
}

.registration-form .radio-label input[type="radio"] {
    margin-right: 0.5em;
    margin-bottom: 0;
    width: auto;
}

.registration-form .radio-label span {
    font-weight: 400;
    color: #2d3748;
}

/* Currency input wrapper styling */
.currency-input-wrapper {
    position: relative;
    display: inline-block
}

.currency-symbol {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.registration-form .currency-input-wrapper input[type="number"] {
    padding-left: 2em;
    margin-bottom: 0;
}

.registration-form .form-instruction {
    color: #4a5568;
    font-size: 0.9em;
    margin-bottom: 1.5em;
    padding: 0.75em;
    background-color: #f7fafc;
    border-left: 4px solid #3182ce;
    border-radius: 4px;
}

.registration-form .help-text {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 1.2em;
    margin-top: 0.3em;
}

.registration-form .section-title {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 0.7em;
    margin-top: 1.5em;
    color: #2d3748;
}

.registration-form .submit-button {
    width: 100%;
    padding: 1em;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5em;
    transition: background-color 0.2s ease;
}

.registration-form .submit-button:hover {
    background: #2c5aa0;
}

.registration-form .submit-button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

.registration-form-message {
    margin-top: 1em;
    text-align: center;
    font-weight: 500;
}

/* Original verify email modal styles (keeping for compatibility) */
#verify-email-form-modal label {
    display: block;
    margin-top: 1em;
    font-weight: 500;
}
#verify-email-form-modal input {
    width: 100%;
    padding: 0.7em;
    margin-top: 0.5em;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1em;
    display: block;
}
/* Forgot Password Modal Styles */
#forgot-password-form-modal label {
        /* overflow removed to avoid extra scrollbars */
        overflow: visible;
    margin-top: 1em;
    font-weight: 500;
}
#forgot-password-form-modal input {
    width: 100%;
    padding: 0.7em;
    margin-top: 0.5em;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1em;
    display: block;
}
#forgot-password-form-modal button {
    width: 100%;
    padding: 0.8em;
    font-size: 1.1em;
    border-radius: 6px;
    background: #3182ce;
    color: #fff;
    margin-top: 1.5em;
    cursor: pointer;
    font-weight: 600;
}
#forgot-password-form-modal button:hover {
    background: #2c5aa0;
}
/* Login Modal Form Styles */
#login-form-modal label {
    display: block;
    margin-top: 1em;
    font-weight: 500;
}
#login-form-modal input {
    width: 100%;
    padding: 0.7em;
    margin-top: 0.5em;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1em;
    display: block;
}
#login-form-modal button {
    width: 100%;
    padding: 0.8em;
    font-size: 1.1em;
    border-radius: 6px;
    border: none;
    background: #3182ce;
    color: #fff;
    margin-top: 1.5em;
    cursor: pointer;
    font-weight: 600;
}
#login-form-modal button:hover {
    background: #2c5aa0;
}

/* Registration Form Styles */
.form-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2em;
    margin-bottom: 2em;
}
.form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2em 2em 1.5em 2em;
    min-width: 320px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.form-title {
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 0 44px;
}
#server-register-form label {
    display: block;
    margin-top: 1em;
    font-weight: 500;
    color: #222;
    font-size: 1.05em;
}
#server-register-form input[type="text"],
#server-register-form input[type="email"],
#server-register-form input[type="password"],
#server-register-form input[type="number"],
#server-register-form select {
    width: 100%;
    padding: 0.85em 1em;
    margin-top: 0.5em;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    box-sizing: border-box;
    font-size: 1.08em;
    background: #f6f8fb;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#server-register-form input:focus,
#server-register-form select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #e0e7ff;
        /* No overflow property here */
}
#server-register-form button {
    width: 100%;
    padding: 0.9em 0;
    font-size: 1.15em;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #fff;
    margin-top: 1.2em;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    transition: background 0.2s;
}
#server-register-form button:hover {
    background: #1746a2;
}
#server-register-form .file-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.2em;
    text-align: center;
    cursor: pointer;
    background: #f6f8fb;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    margin-bottom: 1em;
    min-height: 100px;
    max-height: 180px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#server-register-form .file-upload-box:hover {
    border-color: #2563eb;
    background: #e0e7ff;
}
#server-register-form .file-upload-box.drag-over {
    border-color: #10b981;
    background: #ecfdf5;
    border-style: solid;
}
#server-register-form .file-upload-box.has-file {
    border-color: #10b981;
    background: #f0fdf4;
}
#server-register-form .file-upload-icon {
    font-size: 2em;
    color: #94a3b8;
    margin-bottom: 0.5em;
    display: block;
}
#server-register-form .file-upload-label {
    color: #3182ce;
    font-weight: 500;
    font-size: 1em;
    display: block;
}
#server-register-form .upload-loading {
    color: #3182ce;
    font-weight: 500;
    font-size: 1em;
}
#server-register-form .file-preview {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#server-register-form .file-preview .preview-image {
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}
#server-register-form .btn-remove-file:hover {
    background: #b91c1c;
}
#register-form label {
    display: block;
    margin-top: 1em;
    font-weight: 500;
}
#register-form input, #register-form select {
    width: 100%;
    padding: 0.7em;
    margin-top: 0.5em;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 1em;
}
#register-form button {
    width: 100%;
    padding: 0.8em;
    font-size: 1.1em;
    border-radius: 6px;
    border: none;
    background: #2563eb;
    color: #fff;
    margin-top: 1.5em;
    cursor: pointer;
    font-weight: 600;
}
#register-form button:hover {
    background: #1746a2;
}
/* CTA Section Styles */
.cta-section {
    background: none;
    margin: 2em 0 0 0;
    padding: 0;
}
.cta-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 900px;
    margin: 2em auto 0 auto;
    padding: 2em 1em 1.5em 1em;
    text-align: center;
}
.cta-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 1.5em;
}
.cta-cards {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
}
.cta-card {
    background: #f6f8fb;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 2em 1.5em 1.5em 1.5em;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    text-align: center;
    margin-bottom: 1em;
}
.cta-label {
    font-size: 1.1em;
    margin-bottom: 0.5em;
}
.cta-desc {
    font-size: 1em;
    color: #444;
    margin-bottom: 0.5em;
}

.cta-features {
    margin-top: 1.5em;
    font-size: 1em;
    color: #555;
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
}
@media (max-width: 700px) {
    .cta-cards {
        flex-direction: column;
        gap: 1em;
    }
    .cta-features {
        gap: 1em;
        font-size: 0.95em;
    }
}

/* Comparison Table Styles */
.comparison-table-wrapper {
    margin-top: 2em;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
}

.comparison-table thead {
    background: #f8f9fa;
}

.comparison-table th {
    padding: 1em;
    font-weight: 600;
    text-align: left;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.comparison-table th:first-child {
    width: 40%;
}

.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
    width: 30%;
    text-align: center;
}

.comparison-table td {
    padding: 1em;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: #374151;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
    text-align: center;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.comparison-check {
    color: #22c55e;
    font-size: 1.5em;
    font-weight: bold;
}

.comparison-x {
    color: #ef4444;
    font-size: 1.5em;
    font-weight: bold;
}

.comparison-notes {
    display: block;
    font-size: 0.75em;
    color: #6b7280;
    margin-top: 0.5em;
    font-weight: normal;
}

@media (max-width: 768px) {
    .comparison-table-wrapper {
        margin: 1em -1em 0 -1em;
    }
    
    .comparison-table {
        font-size: 0.9em;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75em 0.5em;
    }
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f6f8fb;
    color: #222;
}

/* Make all anchor links bold by default */
body a {
    font-weight: bold;
}

body h1 {
    margin-top: 0;
}

body h2 {
    margin-top: 0;
    margin-bottom: 1em;
}

/* Hero Section with Background Image - Full Screen */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    background-image: url('../img/hero-landscape.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em 1em;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Video Styling */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-video-visible {
    opacity: 1;
}

/* Hide portrait video on desktop by default */
#hero-video-portrait {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
}

/* When video is loaded, slightly reduce overlay opacity for better video visibility */
.hero-video-loaded .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* Hero Unmute Button */
.hero-unmute-btn {
    position: absolute;
    top: 2em;
    right: 2em;
    z-index: 10;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-unmute-btn-visible {
    opacity: 1;
    visibility: visible;
}

.hero-unmute-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-unmute-btn:active {
    transform: scale(0.95);
}

.hero-unmute-btn-active {
    background: rgba(49, 130, 206, 0.9);
    border-color: rgba(49, 130, 206, 0.5);
}

.hero-unmute-btn-active:hover {
    background: rgba(37, 99, 235, 0.95);
    border-color: rgba(37, 99, 235, 0.6);
}

.hero-unmute-icon {
    font-size: 28px;
    color: #1f2937;
    transition: color 0.3s ease;
}

.hero-unmute-btn-active .hero-unmute-icon {
    color: white;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 2em;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 1em 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-desc {
    font-size: 1.25em;
    margin-bottom: 2em;
    color: white;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Register page hero section */
.hero h1 {
    margin-bottom: 0.5em;
    text-align: center;
    font-size: 1.5em;
    text-transform: uppercase;
}

.hero p {
    text-align: center;
    color: #6b7280;
}

.hero-buttons {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-buttons .btn {
    min-width: 200px;
    padding: 0.9em 2em;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-primary {
    background: #3182ce;
    color: white;
    border: 2px solid #3182ce;
}

.hero-buttons .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.hero-buttons .btn-secondary {
    background: white;
    color: #3182ce;
    border: 2px solid white;
}

.hero-buttons .btn-secondary:hover {
    background: #f0f4ff;
    border-color: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Mobile Portrait Image */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
        background-image: url('../img/hero-portrait.jpg');
        background-attachment: scroll;
        padding: 1.5em 1em;
    }
    
    /* Show portrait video on mobile, hide landscape */
    #hero-video-portrait {
        display: block;
    }
    
    #hero-video-landscape {
        display: none;
    }
    
    /* Adjust unmute button for mobile */
    .hero-unmute-btn {
        top: 1em;
        right: 1em;
        width: 48px;
        height: 48px;
    }
    
    .hero-unmute-icon {
        font-size: 24px;
    }
    
    .hero-content {
        padding: 1.5em 1em;
    }
    
    .hero-content h1 {
        font-size: 1.8em;
        margin-bottom: 0.8em;
    }
    
    .hero-desc {
        font-size: 1.1em;
        margin-bottom: 1.5em;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8em;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 0.85em 1.5em;
        font-size: 1em;
        margin: 0;
        box-sizing: border-box;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 1.5em;
    }
    
    .hero-desc {
        font-size: 1em;
    }
}
.btn {
    display: inline-block;
    padding: 0.7em 1.5em;
    margin: 0.3em;
    border-radius: 6px;
    border: 1px solid #2563eb;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary {
    background: #fff;
    color: #3182ce;
    border: 1px solid #3182ce;
}
.btn-secondary:hover {
    background: #e0e7ff;
    color: #1746a2;
}
.btn-outline {
    background: #fff;
    color: #3182ce;
    border: 1px solid #3182ce;
}
.btn-outline:hover {
    background: #e0e7ff;
    color: #1746a2;
}
.btn-success {
    background: #10b981;
    color: #fff;
    border: none;
}
.btn-success:hover {
    background: #059669;
}
.btn-large {
    padding: 1em 2em;
    font-size: 1.1em;
    font-weight: 600;
}
.btn-search {
    background: #3182ce;
    color: #fff;
    border: none;
    padding: 0.5em 1.2em;
    margin-left: 0.5em;
}
.btn-search:hover {
    background: #2c5aa0;
}
.btn-approve {
    background: #16a34a;
    color: #fff;
    border: 1px solid #16a34a;
}
.btn-approve:hover {
    background: #15803d;
    color: #fff;
}
.btn-deny {
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
}
.btn-deny:hover {
    background: #b91c1c;
    color: #fff;
}
.admin-form-input {
    width: 100%;
    padding: 0.85em 1em;
    margin-top: 1em;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    box-sizing: border-box;
    font-size: 1.08em;
    background: #f6f8fb;
    color: #222;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #e0e7ff;
}
.profile-photo-container {
    perspective: 1000px;
    cursor: pointer;
}
.profile-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}
.profile-photo-container:hover .profile-photo-wrapper {
    transform: rotateY(180deg);
}
.profile-photo-front,
.profile-photo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    border: 3px solid #3182ce;
}
.profile-photo-back {
    transform: rotateY(180deg);
    background: #3182ce;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-edit-btn {
    background: #fff;
    color: #3182ce;
    border: 2px solid #fff;
    padding: 0.7em 1.2em;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}
.profile-edit-btn:hover {
    background: #e0e7ff;
    color: #1746a2;
}
.admin-form-input[type="date"] {
    position: relative;
    cursor: pointer;
}
.admin-form-input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}
main {
    max-width: 900px;
    margin: 0 auto;
}
footer {
    background: #003366;
    color: #fff;
    padding: 1em;
    text-align: center;
}

/* New reusable footer styling */
.site-footer {
    background: transparent;
    color: inherit;
    padding: 2em 1em;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    margin-top: 2em;
}

.site-footer p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9em;
}
.stats-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-top: 2em;
    padding: 2em 1em;
}
.stats-counters {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-bottom: 2em;
}

.counter-box {
    background: #f6f8fb;
    border-radius: 8px;
    padding: 1em 2em;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.counter-value {
    font-size: 2em;
    font-weight: bold;
    color: #3182ce;
}
.counter-label {
    font-size: 1em;
    color: #555;
}
.stats-table {
    margin-top: 2em;
    text-align: center;
}
.zip-search-bar {
    margin-bottom: 1em;
}
#zip-input {
    padding: 0.5em;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 180px;
    font-size: 1em;
}
#zip-search-result {
    margin: 1em 0;
    font-size: 1.1em;
    color: #3182ce;
}
#zip-stats-list {
    margin-top: 1em;
}
#zip-stats-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}
#zip-stats-list th, #zip-stats-list td {
    padding: 0.7em;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
#zip-stats-list th {
    background: #f8f9fa;
    color: #374151;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}
#zip-stats-list td {
    color: #222;
}
.no-servers {
    text-align: center;
    color: #888;
    margin: 2em 0;
    font-size: 1.2em;
}
@media (max-width: 700px) {
    main {
        padding: 1em;
        max-width: 98vw;
    }
    .stats-counters {
        flex-direction: column;
        gap: 1em;
    }
    .counter-box {
        padding: 1em;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.5em 1em;
        min-width: 0;
        max-width: 100%;
    }
}

/* Dashboard Button Styles */
.dashboard-button {
    width: 100%;
    padding: 1em;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dashboard-button:hover {
    background: #2c5aa0;
}

.dashboard-button:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

/* Standard Button Styles */
.btn-primary {
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6em 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.btn-primary:hover {
    background: #2c5aa0;
}

.btn-small {
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25em 0.5em;
    font-size: 0.875em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-small:hover {
    background: #2c5aa0;
}

.btn-modal {
    margin-top: 1em;
    padding: 0.5em 1.5em;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-modal:hover {
    background: #2c5aa0;
}


/* Dashboard Layout */
.dashboard-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1em;
    padding: 1em 1em 0 1em;
    position: relative;
}

.dashboard-name {
    font-size: 1em;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
}

.nav-buttons {
    display: flex;
    gap: 2px;
    align-items: center;
}

.nav-spacer {
    width: 92px;
    visibility: hidden;
}

.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2em;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 0.5em;
    margin-bottom: 1em;
    width: 360px;
    min-width: 360px;
    flex: 1 1 320px;
    overflow: visible; /* Allow SVG to extend beyond card */
    box-sizing: border-box;
}

.dashboard-card h2 {
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
}

/* My Jobs / Archived Jobs card - wider max width */
.dashboard-card:has(#my-jobs-list) {
    max-width: 490px;
    width: 100%;
}

/* Table Styles */
#cases-table-container {
    margin: 0;
}

.cases-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    table-layout: fixed;
}

.cases-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #e5e7eb;
}

th, .section-title, h2 {
    font-weight: 600;
    color: #374151;
    font-size: 0.875em;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.cases-table th {
    padding: 1em 0.75em;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875em;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border: none;
}

.cases-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.cases-table td {
    padding: 6px;
}

.case-header-row td {
    padding: 0px;
}

.case-info-button {
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75em 1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: left;
    font-size: 1em;
    font-weight: 600;
    min-height: 3.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* New case header button that spans all columns */
.case-header-button {
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75em;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    font-size: 1em;
    font-weight: 600;
    min-height: 3.5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
}

.case-header-button:hover {
    background-color: #2c5aa0;
}

.addr-header-button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: initial;
    color: white;
    border: none;
    width: 100%;
    box-sizing: border-box;
    pointer-events: none;
}

.case-info-container {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    min-width: 0;
}

/* New: Generic CTA round button (blue background, white icon) */
.cta-round-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3498db; /* CTA blue */
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 44px;
    touch-action: manipulation
}

.cta-round-btn:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.cta-round-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
}

.cta-round-btn .material-symbols-outlined {
    pointer-events: none;
}

.attorney-actions-container {
    display: flex;
    gap: 2px;
    justify-content: center;
    align-items: center;
}

.attorney-form-buttons {
    display: flex;
    gap: 0.5em;
    align-items: center; /* Vertically center all buttons */
}

.attorney-form-buttons .submit-button {
    flex: 1;
    margin-top: 0 !important; /* Override default submit-button margin */
    height: 44px; /* Match height of round buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1em; /* Horizontal padding only */
}

#attorney-edit-actions {
    display: none;
    gap: 0.5em;
    align-items: center; /* Vertically center cancel and delete buttons */
}

#attorney-edit-actions.show {
    display: flex;
}

.attorney-row-clickable:hover {
    background-color: #f3f4f6;
}

.cases-table .case-number {
    font-size: 0.9em;
    color: #e2e8f0;
    font-weight: normal;
    margin-top: 0.25em;
}

.action-buttons {
    display: flex;
    gap: 2px;
    justify-content: center;
    align-items: center;
}

/* Style empty cells in case header rows */
.cases-table .case-header-empty {
    background: transparent;
    border: none;
    padding: 0.5em;
}

/* Job row zebra striping */
.cases-table .job-row-even {
    background-color: #ffffff;
}

.cases-table .job-row-odd {
    background-color: #f9fafb;
}

/* Clickable job rows */
.cases-table .job-row-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cases-table .job-row-clickable:hover {
    background-color: #e2e8f0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cases-table .job-row-clickable:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


/* Server Dashboard Job Table Styles */
.job-table-container {
    margin-top: 1em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.job-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9em;
}

.job-table thead {
    background: #f8f9fa;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.job-table th {
    padding: 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875em;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border: none;
}

.job-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.job-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.job-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.job-table tbody tr:hover {
    background-color: #e2e8f0 !important;
}

.job-table tbody tr:last-child {
    border-bottom: none;
}

.auctions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9em;
}

.auctions-table thead {
    background: #f8f9fa;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.auctions-table th {
    padding: 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875em;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border: none;
}

.auctions-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.auctions-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.auctions-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.auctions-table tbody tr:hover {
    background-color: #e2e8f0 !important;
}

.auctions-table tbody tr:last-child {
    border-bottom: none;
}

.auctions-table td {
    padding: 8px;
    vertical-align: middle;
    border: none;
}

.job-table td {
    padding: 8px;
    vertical-align: middle;
    border: none;
}

/* Specific column styles */
.job-street {
    font-weight: 500;
    color: #1f2937;
    width: calc(100% - 154px);
    word-wrap: break-word;
}

.job-zip {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-weight: 500;
    width: 44px;
}

.job-type {
    text-transform: capitalize;
    color: #374151;
    font-weight: 500;
    width: 76px;
}

.job-payment {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #059669;
    font-size: 0.95em;
}

.job-action {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-status {
    text-align: center;
}

.status-claimed {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #86efac;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* No jobs message */
.no-jobs-message {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2em 1em;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 1em;
    border: 1px solid #e5e7eb;
}

/* Action buttons for party dashboard job rows */
.job-actions {
    text-align: center;
    padding: 0.5em 0 0.5em 0 !important;
    width: 42px;
}

.action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: 2px solid #e5e7eb;
    /* border: 2px solid #e5e7eb; */
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
    flex-shrink: 0;
    pointer-events: auto;
}

.action-btn:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
}

.action-btn .material-symbols-outlined {
    color: #3498db; /* CTA blue for action button icons */
}

.action-icon {
    font-size: 20px;
    line-height: 1;
}

.address-row {
    background: #222222;
    color: white;
    font-size: 13.3333px;
}

.address-row td {
    border-radius: 8px;
}

.address-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    touch-action: manipulation;
}

.address-btn:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* Claim button styling */
.claim-btn {
    background: #3498db;
    color: white;
    font-weight: 600;
    font-size: 0.8em;
    border-radius: 50%;
    border-color: #3498db;
    display: inline-flex;
}

.claim-btn:hover {
    background: #2c5aa0;
    border-color: #2c5aa0;
}

.claim-btn.disabled,
.claim-btn:disabled {
    cursor: not-allowed;
}

/* Auction button styling (gavel icon) */
.auction-btn {
    background: #3498db;
    color: white;
    border: 2px solid #3498db;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8em;
}


.auction-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.auction-btn.disabled,
.auction-btn:disabled {
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #d1d5db !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.auction-btn.disabled:hover,
.auction-btn:disabled:hover {
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    min-width: 20px;
}

.attempt-count-badge {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #374151;
    border: 1px solid #374151;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    z-index: 10;
    cursor: pointer;
    touch-action: manipulation;
}

.attempt-badge-tooltip {
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
}

/* Specific button hover colors */
.messages-btn:hover {
    border-color: #10b981;
    background: #ecfdf5;
}

.documents-btn:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.invoices-btn:hover {
    border-color: #8b5cf6;
    background: #f3f4f6;
}

/* Profile Info */
.profile-actions {
    margin-top: 1.5em;
}

.profile-placeholder {
    text-align: center;
    color: #666;
    padding: 1em;
}

/* Form Card Variations */
.form-card.admin {
    flex: 1 1 320px;
    max-width: 420px;
}

/* Admin Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
}

.admin-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #e5e7eb;
}

.admin-table th {
    padding: 1em 0.75em;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875em;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border: none;
}

.admin-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.admin-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.admin-table tbody tr:hover {
    background-color: #e2e8f0 !important;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table td {
    padding: 1em 0.75em;
    vertical-align: middle;
    border: none;
    font-size: 0.875rem;
}

/* Status Modal Styles */
/* Duplicate .modal-close definition removed - using global definition above */

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin: 0 0 0 44px;
}

/* Center the Create New Case round button above the table in the My Cases card */
.dashboard-card.cases .mb-1 {
    display: flex;
    justify-content: center;
    margin: 0;
}

/* Center buttons in modal mb-1 containers */
.registration-modal .mb-1 {
    display: flex;
    justify-content: center;
}

.mt-1 {
    margin-top: 1em;
}

.mb-1-2 {
    margin-bottom: 1.2em;
}

.mb-1-5 {
    margin-bottom: 1.5em;
}

.no-cases-message {
    text-align: center;
    color: #666;
    padding: 2em;
    display: none;
}

.no-cases-message.show {
    display: block;
}

/* Links */
#profile-status a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

#profile-status a:hover {
    text-decoration: underline;
}

.link-primary {
    color: #3182ce;
    text-decoration: none;
    font-weight: bold;
}

.link-primary:hover {
    text-decoration: underline;
}

.link-underline {
    color: #3182ce;
    text-decoration: underline;
    font-size: 0.98em;
}

/* Icon Styles */
.cta-icon {
    font-size: 2em;
    padding: 0.5em;
    border-radius: 50%;
    margin-bottom: 0.5em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.cta-icon .material-symbols-outlined {
    font-size: 1.5em;
    line-height: 1;
}

.cta-icon.party {
    background: #e0e7ff;
    color: #3182ce;
}

.cta-icon.server {
    background: #d1fae5;
    color: #059669;
}

.cta-features span {
    margin-left: 2em;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.cta-features span:first-child {
    margin-left: 0;
}

.cta-feature-icon {
    font-size: 1.2em;
    vertical-align: middle;
}

/* Messages Modal Styles */
#messages-modal {
    pointer-events: auto;
}

#messages-modal .close-modal-button {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 10;
}

#messages-modal .close-modal-button:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
}

#messages-modal .close-modal-button:active {
    background: #d1d5db;
    transform: scale(0.95);
}

.messages-container {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    height: 500px;
    margin: 0 auto;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75em;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1em;
    background: #f9fafb;
    max-height: 400px;
    /* Narrow scrollbar styling (matches documents and invoices modals) */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #cbd5e1 #f1f5f9; /* Firefox */
}

/* Custom narrow scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.messages-list::-webkit-scrollbar {
    width: 8px;
}

.messages-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.messages-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.message {
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
}

.message-me {
    align-items: flex-end;
}

.message-other {
    align-items: flex-start;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.25em;
    gap: 0.5em;
}

.message-me .message-header {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.message-author {
    font-size: 0.875em;
    font-weight: 600;
    color: #374151;
}

.message-timestamp {
    font-size: 0.75em;
    color: #6b7280;
}

.message-body {
    background: white;
    padding: 0.75em;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    max-width: 85%;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.4;
}

.message-me .message-body {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

.message-other .message-body {
    background: white;
    color: #374151;
}

/* Override modal center alignment for auction messages */
#auction-messages-list {
    text-align: left;
}

.message-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.message-input-wrapper {
    display: flex;
    gap: 0.5em;
}

#message-input {
    flex: 1;
    padding: 0.75em;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9em;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
}

#message-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.1);
}

.send-message-btn {
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1.2em;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.send-message-btn:active {
    background: #1d4ed8;
}

.message-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75em;
    color: #6b7280;
}

.no-messages {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2em;
}

.error-message {
    text-align: center;
    color: #dc2626;
    padding: 1em;
    background: #fee2e2;
    border-radius: 8px;
    margin: 1em 0;
}

.registration-modal-header {
    position: relative;
    padding-bottom: 1em;
    text-align: center;
}

.registration-modal-header h2 {
    margin: 0 0 0 44px;
    font-size: 1em;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
}

#documents-modal .close-modal-button {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 10;
}

#documents-modal .close-modal-button:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
}

#documents-modal .close-modal-button:active {
    background: #d1d5db;
    transform: scale(0.95);
}

.documents-container {
    width: 100%;
    margin: 10px auto 0 auto;
    max-width: 325px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    gap: 0.5em;
    padding: 1em 0.5em 1em 0.5em;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    justify-content: start;
    transition: all 0.2s ease;
}

.documents-grid.drag-over {
    border-color: #3182ce;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.document-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5em;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 150px;
    height: 150px;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    position: relative;
}

.geo-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(34,197,94,0.18);
    font-size: 1.2em;
    border: 2px solid #fff;
    pointer-events: auto;
    cursor: help;
}

.document-item:hover {
    border-color: #3182ce;
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.1);
}

/* Keep normal border when dragging document titles (don't highlight) */
body.dragging-document-title .document-item:hover {
    border-color: #e2e8f0;
    box-shadow: none;
}

.document-item:hover .document-overlay {
    visibility: visible;
}

/* Don't show overlay when dragging document titles */
body.dragging-document-title .document-item:hover .document-overlay {
    visibility: hidden;
}

/* Document Action Overlay */
.document-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    visibility: hidden;
    transition: all 0.2s ease;
}

.document-action-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.document-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Delete Progress Indicator */
.delete-progress {
    position: absolute;
    bottom: 0px;
    left: 2px;
    right: 2px;
    height: 3px;
    background: #dc2626;
    border-radius: 0 0 50% 50%;
    transform-origin: center;
    width: 0%;
    z-index: 1002;
}

@keyframes deleteProgress {
    from {
        width: 0%;
    }
    to {
        width: calc(100% - 4px);
    }
}

.document-preview {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5em;
}

.document-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.pdf-icon {
    color: #dc2626;
}

.document-name {
    font-size: 0.75em;
    text-align: center;
    color: #374151;
    line-height: 1.2;
    word-break: break-word;
}

.upload-item {
    border: 2px dashed #d1d5db;
    background: #f9fafb;
}

.upload-item:hover {
    border-color: #3182ce;
    background: #eff6ff;
}

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.upload-icon {
    color: #6b7280;
    margin-bottom: 0.5em;
}

.upload-text {
    font-size: 0.75em;
    color: #6b7280;
    text-align: center;
}

.upload-progress {
    margin-top: 1em;
    padding: 1em;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5em;
}

.progress-fill {
    height: 100%;
    background: #3182ce;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.875em;
    color: #374151;
    text-align: center;
    display: block;
}

/* Documents Case Note Styles */
#documents-case-note {
    margin: 1em 0 0.25em 0;
    padding: 0.75em;
    background-color: #f7fafc;
    border-left: 4px solid #3182ce;
    border-radius: 4px;
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.4;
    display: none; /* Hidden by default, shown via JavaScript */
}

#documents-case-note strong {
    font-weight: 600;
}

/* Process Server Forms Section */
#process-server-forms-section {
    margin-top: 2em;
    padding-top: 2em;
    border-top: 2px solid #e5e7eb;
}

#process-server-forms-section h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 1em;
    color: #1f2937;
}

.forms-table {
    width: 100%;
    border-collapse: collapse;
}

.forms-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.form-row-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-row-clickable:nth-child(odd) {
    background-color: #f8f9fa;
}

.form-row-clickable:nth-child(even) {
    background-color: #ffffff;
}

.form-row-clickable:hover {
    background-color: #e3f2fd;
}

.form-row-clickable td {
    padding: 1em;
    text-align: left;
}

.form-row-clickable strong {
    font-size: 1em;
    color: #1f2937;
}

/* Job Ready Toggle Styles */
.job-ready-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 1em;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 0.5em;
    position: relative;
}

.toggle-label {
    flex: 1;
}

.toggle-text {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 0.9em;
    margin-bottom: 0.25em;
}

.toggle-description {
    display: block;
    font-size: 0.75em;
    color: #6b7280;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 1em;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ef4444;
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #22c55e;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Gray toggle variant (for waiver toggle) */
.toggle-slider-gray {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #9ca3af;
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider-gray:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider-gray {
    background-color: #22c55e;
}

input:checked + .toggle-slider-gray:before {
    transform: translateX(26px);
}

/* Toggle filling animation - stays gray during animation */
.toggle-slider.toggle-filling {
    background-color: #cbd5e1 !important;
    /* Use a subtle opacity pulse to show activity */
    animation: togglePulse 4s linear forwards;
}

/* Slow slider movement animation over 4 seconds - works on unchecked toggle */
.toggle-slider.toggle-filling:before {
    animation: sliderMove 4s linear forwards;
}

/* Override normal toggle behavior during our custom animation */
input + .toggle-slider.toggle-filling:before {
    animation: sliderMove 4s linear forwards !important;
}

/* Ensure animation works even when toggle is unchecked */
input:not(:checked) + .toggle-slider.toggle-filling:before {
    animation: sliderMove 4s linear forwards !important;
}

/* When cancelling, remove transition to snap back immediately */
.toggle-slider.toggle-cancelled:before {
    transition: none !important;
    transform: translateX(0) !important;
    animation: none !important;
}

@keyframes togglePulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1.0;
    }
}

@keyframes sliderMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(26px);
    }
}

.toggle-message {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75em;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    display: none;
}

.toggle-message.success {
    background: #d1fae5;
    color: #065f46;
}

.toggle-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Read-only input fields */
.registration-form input[readonly],
.registration-form select[readonly] {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.registration-form input[readonly]:focus,
.registration-form select[readonly]:focus {
    border-color: #e5e7eb;
    box-shadow: none;
}

/* Disabled toggle state */
.job-ready-toggle-container.toggle-disabled {
    opacity: 0.6;
}

.job-ready-toggle-container.toggle-disabled .toggle-switch {
    cursor: not-allowed;
}

.job-ready-toggle-container.toggle-disabled .toggle-slider {
    cursor: not-allowed;
    background-color: #22c55e !important; /* Green for locked "ready" state */
}

/* More specific rule to override input:checked when disabled */
.job-ready-toggle-container.toggle-disabled input:checked + .toggle-slider {
    background-color: #22c55e !important; /* Green for locked "ready" state */
}

.job-ready-toggle-container.toggle-disabled .toggle-text {
    color: #9ca3af;
}

/* Invoices Modal Styling */
.invoices-container {
    max-height: 400px;
    overflow-y: auto;
}

.invoices-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
    font-size: 0.9em;
}

.invoices-table th:nth-child(1) { width: 26%; }  /* Date */
.invoices-table th:nth-child(2) { width: 21%; }  /* Amount */
.invoices-table th:nth-child(3) { width: 38%; }  /* Description */
.invoices-table th:nth-child(4) { width: 15%; }  /* Status */

.invoice-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.invoice-row:nth-child(even) {
    background-color: #f8fafc;
}

.invoice-row:nth-child(odd) {
    background-color: #ffffff;
}

.invoice-row:hover {
    background-color: #e2e8f0 !important;
}

.invoice-row:last-child {
    border-bottom: none;
}

.invoice-description {
    font-weight: 500;
    color: #1f2937;
    max-width: 150px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

.invoice-amount {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #059669;
    font-size: 0.95em;
}

.invoice-status {
    text-align: center;
}

.invoice-status .status-badge {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: initial;
    color: white;
    text-transform: capitalize;
}

.invoice-total-row,
.invoice-unpaid-row {
    background-color: #f8fafc;
    border-top: 2px solid #e5e7eb;
}

.invoice-total-row td,
.invoice-unpaid-row td {
    padding: 1em 0.75em;
    font-size: 0.875rem;
    font-weight: 600;
}

.invoice-total-amount,
.invoice-unpaid-amount {
    text-align: right;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #059669;
    font-size: 0.95em;
}

.no-invoices {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 1rem;
    color: #dc2626;
    background-color: #fee2e2;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Invoices Modal Close Button Styling */
#invoices-modal .close-modal-button {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #6b7280;
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: auto !important;
}

#invoices-modal .close-modal-button:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #9ca3af;
}

#invoices-modal .close-modal-button:active {
    background: #d1d5db;
    transform: scale(0.95);
}

/* Fix modal container and overflow issues */
#invoices-modal .invoices-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Narrow scrollbar styling (matches documents modal) */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #cbd5e1 #f1f5f9; /* Firefox */
}

/* Custom narrow scrollbar for Webkit browsers (Chrome, Safari, Edge) */
#invoices-modal .invoices-container::-webkit-scrollbar {
    width: 8px;
}

#invoices-modal .invoices-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#invoices-modal .invoices-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

#invoices-modal .invoices-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

#invoices-modal .invoices-list {
    width: 100%;
    overflow: visible;
}

/* Ensure modal appears correctly */
#invoices-modal {
    z-index: 1001 !important;
}

.job-details-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
}

.section-title {
    font-size: 0.875em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

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

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

.detail-label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #2c3e50;
    font-size: 1em;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    min-height: 20px;
}

.status-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.status-claimed {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-accepted {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.countdown-display {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.1em;
    margin-left: 12px;
}

.accept-job-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.accept-job-btn:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-1px);
}

.accept-job-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reject-job-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    margin-left: 12px;
}

.reject-job-btn:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    transform: translateY(-1px);
}

.reject-job-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.notes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Status display in My Notes section */
.status-display {
    margin-bottom: 1em;
    padding: 0.5em 0;
    display: flex;
    align-items: center;
    gap: 1em;
}

/* Service attempts display */
.service-attempts-display {
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
}

.attempt-badge {
    display: inline-block;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-size: 0.6em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.attempt-badge-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.attempt-badge-complete {
    background-color: #d1fae5;
    color: #065f46;
}

/* Detail row for side-by-side items */
.detail-row {
    display: flex;
    gap: 2em;
    margin-bottom: 1em;
}

.detail-row .detail-item {
    flex: 1;
    margin-bottom: 0;
}

/* Ensure address formatting works properly */
.detail-value {
    line-height: 1.4;
}

#server-notes {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#server-notes:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

#save-notes-btn {
    align-self: flex-start;
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#save-notes-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

#save-notes-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Loading skeleton styles for modal */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 400px;
}

.loading-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.loading-title {
    height: 24px;
    background: #dee2e6;
    border-radius: 4px;
    margin-bottom: 16px;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

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

.loading-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loading-label {
    height: 16px;
    background: #dee2e6;
    border-radius: 4px;
    width: 60%;
}

.loading-value {
    height: 40px;
    background: #f1f3f4;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.loading-textarea {
    height: 100px;
    background: #f1f3f4;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    margin-top: 12px;
}

@keyframes skeleton-pulse {
    0% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Make job rows clickable */
.job-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.job-row:hover {
    background-color: #f8f9fa;
}

/* Blink highlight for deep-linked rows */
.blink-highlight {
    animation: blinkRow 0.8s ease-in-out 6; /* ~5s */
}

@keyframes blinkRow {
    0% { background-color: #fff; }
    50% { background-color: #fef3c7; }
    100% { background-color: #fff; }
}

/* Status timestamp styling for job details modal */
.status-timestamp {
    font-size: 0.85em;
    color: #666;
    margin-top: 0.5em;
    font-style: italic;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem    ;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.status-accepted {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-completed {
    background-color: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.status-claimed {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-ready {
    background-color: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* My Jobs Sections */
.my-jobs-section {
    margin-bottom: 20px;
}

.my-jobs-section:last-child {
    margin-bottom: 0;
}

.my-jobs-section-header {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
}

.my-jobs-section-header.collapsible {
    cursor: pointer;
}

.my-jobs-section-header .expand-icon {
    font-size: 0.9em;
    color: #3498db;
    transition: transform 0.2s ease;
}

.my-jobs-section-header.expanded .expand-icon {
    transform: rotate(90deg);
}

.my-jobs-section-content {
    display: block;
}

/* FAQ Accordion Section */
.faq-section {
    background: #f6f8fb;
    padding: 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1em;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 1.5em 1.75em;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    transition: background-color 0.2s ease, border-radius 0.2s ease;
    box-sizing: border-box;
    border-radius: 12px;
}

.faq-question[aria-expanded="true"] {
    border-radius: 12px 12px 0 0;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #3182ce;
}

.faq-question-text {
    flex: 1;
    padding-right: 1em;
    line-height: 1.5;
}

.faq-expand-icon {
    font-size: 0.75em;
    color: #6b7280;
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
    font-weight: normal;
}

.faq-question:hover .faq-expand-icon {
    color: #4b5563;
}

.faq-question[aria-expanded="true"] .faq-expand-icon {
    transform: rotate(180deg);
    color: #3182ce;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.75em;
    background: #fff;
    text-align: left;
}

.faq-answer.expanded {
    max-height: 500px;
    padding: 0 1.75em 1.75em 1.75em;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px;
    padding: 0 1.75em 1.75em 1.75em;
}

.faq-answer p {
    margin: 0;
    color: #444;
    line-height: 1.7;
    font-size: 1em;
    text-align: left;
}

/* Mobile FAQ Styles */
@media (max-width: 768px) {
    .faq-section {
        padding: 2em 1em;
    }
    
    .faq-question {
        padding: 1.25em 1.5em;
        font-size: 1em;
    }
    
    .faq-answer {
        padding: 0 1.5em;
    }
    
    .faq-question[aria-expanded="true"] + .faq-answer {
        padding: 0 1.5em 1.5em 1.5em;
    }
    
    .faq-answer.expanded {
        padding: 0 1.5em 1.5em 1.5em;
    }
}

.my-jobs-section .job-timer {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.9em;
}

/* Attempt Graph Styles */
.attempt-dots-column {
    cursor: pointer;
    position: relative;
}

.attempt-graph-container {
    position: fixed;
    width: 0;
    height: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1020;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 0;
}

.attempt-graph-container.show {
    opacity: 1;
    pointer-events: auto;
}

.attempt-node {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #000;
    transition: all 0.3s ease;
    transform: scale(0);
    text-align: center;
    line-height: 1.1;
}

.attempt-node.show {
    transform: scale(1);
}

.attempt-node.weekday { background-color: #fef3c7; }
.attempt-node.weekend { background-color: #fef3c7; }
.attempt-node.morning { background-color: #fef3c7; }
.attempt-node.noon { background-color: #fef3c7; }
.attempt-node.afternoon { background-color: #fef3c7; }
.attempt-node.evening { background-color: #fef3c7; }

.attempt-node.weekday.active { background-color: #10b981; }
.attempt-node.weekend.active { background-color: #10b981; }
.attempt-node.morning.active { background-color: #10b981; }
.attempt-node.noon.active { background-color: #10b981; }
.attempt-node.afternoon.active { background-color: #10b981; }
.attempt-node.evening.active { background-color: #10b981; }

/* SVG overlay for connections */
.svg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1010;
}

.svg-overlay line {
    stroke: #ef4444 !important; /* Bright red for debugging */
    stroke-width: 4 !important; /* Thicker for visibility */
    opacity: 1 !important; /* Force visible */
    transition: opacity 0.3s ease;
}

.svg-overlay line.show {
    opacity: 1;
}

/* My Cases table column widths and alignment */
.cases-table th:nth-child(2),
.cases-table td:nth-child(2) {
    width: 68px;
}

.cases-table th:nth-child(3),
.cases-table td:nth-child(3) {
    width: 120px;
}

/* Accept and Reject buttons for Claimed jobs */
.accept-btn {
    background: #059669;
    border: 2px solid #059669;
    color: white;
    font-weight: 600;
    font-size: 0.75em;
}

.accept-btn:hover {
    background: #059669;
    border-color: #111111;
}

.reject-btn {
    background: #ef4444;
    border: 2px solid #ef4444;
    color: white;
    font-weight: 600;
    font-size: 0.75em;
}

.reject-btn:hover {
    background: #ef4444;
    border-color: #111111;
}

/* Timer circle for Claimed jobs */
.timer-circle {
    position: relative;
    width: 44px;
    height: 44px;
    border: 2px solid #1f2937;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 700;
    color: #ef4444;
    cursor: default;
    box-sizing: border-box;
}

.timer-text {
    text-align: center;
    line-height: 1;
}

/* Override external Material Symbols stylesheet default (24px) with higher specificity */
tbody .material-symbols-outlined {
    font-size: 32px;
}

/* White Label Modal Styles */
#white-label-modal .url-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

#white-label-modal .url-prefix {
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    font-size: 1em;
    line-height: 1.5;
}

#white-label-modal .url-input-wrapper input {
    flex: 1;
    font-family: 'Courier New', monospace;
}

#white-label-modal .url-status {
    padding: 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 0.5em;
    display: none;
}

#white-label-modal .url-status.checking,
#white-label-modal .url-status.available,
#white-label-modal .url-status.taken,
#white-label-modal .url-status.error {
    display: block;
}

#white-label-modal .url-status.checking {
    background: #e3f2fd;
    color: #1976d2;
}

#white-label-modal .url-status.available {
    background: #d4edda;
    color: #155724;
}

#white-label-modal .url-status.taken,
#white-label-modal .url-status.error {
    background: #f8d7da;
    color: #721c24;
}

#white-label-modal .url-preview {
    padding: 0.75em;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 1em;
    font-size: 0.9em;
    color: #495057;
    display: none;
}

#white-label-modal .char-counter {
    display: block;
    text-align: right;
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 0.25em;
    margin-bottom: 1em;
}

/* Bullet Points Table */
#white-label-modal #bullets-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

#white-label-modal #bullets-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
}

#white-label-modal #bullets-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
}

#white-label-modal #new-bullet-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-sizing: border-box;
}

/* FAQ Items */
#white-label-modal .faq-item {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e9ecef;
}

/* Roadmap Feature Styling */
/* Status classes are defined elsewhere, adding missing ones */
.status-requested {
    background-color: #e7f3ff;
    color: #0066cc;
    border: 1px solid #b3d9ff;
}

.status-wont_do {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Comments */
.public-comment {
    margin-top: 0.5em;
    padding: 0.5em;
    background: #f8f9fa;
    border-left: 3px solid #3b82f6;
    font-size: 0.9em;
    font-style: italic;
}

.private-comment {
    margin-top: 0.5em;
    padding: 0.5em;
    background: #fff8e1;
    border-left: 3px solid #ffa726;
    font-size: 0.9em;
}

/* Vote buttons active state */
.vote-btn.active {
    background: #3b82f6 !important;
    color: white !important;
}

/* Filter buttons */
.roadmap-filters {
    display: flex;
    gap: 0.5em;
    justify-content: center;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
}

#white-label-modal .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#white-label-modal .faq-item input {
    margin-bottom: 0.5em;
    font-weight: 600;
}

#white-label-modal .faq-item textarea {
    min-height: 80px;
}

/* White Label Modal Submit Button */
#white-label-modal .submit-button {
    width: 100%;
    margin-top: 1.5em;
}

/* White Label Gradient Color Pickers */
#white-label-modal input[type="color"] {
    width: 100%;
    height: 44px;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#white-label-modal input[type="color"]:hover {
    border-color: #3b82f6;
}

#white-label-modal input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

#white-label-modal input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

#white-label-modal input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

/* White Label Modal Helper Text */
#white-label-modal small {
    display: block;
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

/* White Label Landing Page Styles */
.wl-landing {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wl-header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5em 0;
}

.wl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
}

.wl-hero {
    display: flex;
    align-items: center;
    gap: 2em;
    padding: 3em 0;
    color: white;
}

.wl-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.wl-hero-content {
    flex: 1;
}

.wl-title {
    font-size: 3em;
    font-weight: 700;
    margin: 0 0 0.3em 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wl-subtitle {
    font-size: 1.5em;
    font-weight: 400;
    margin: 0 0 1em 0;
    opacity: 0.95;
}

.wl-cta-btn {
    display: inline-block;
    padding: 1em 2.5em;
    background: white;
    color: #667eea;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wl-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.wl-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    padding: 3em;
    margin: -2em auto 3em;
    position: relative;
}

.wl-section {
    margin-bottom: 3em;
}

.wl-section:last-child {
    margin-bottom: 0;
}

.wl-section-title {
    font-size: 2em;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 1em 0;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #667eea;
}

.wl-pitch {
    font-size: 1.1em;
    line-height: 1.8;
    color: #4a5568;
}

.wl-bullets {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1em;
}

.wl-bullets li {
    padding: 1em 1em 1em 2.5em;
    background: #f7fafc;
    border-radius: 8px;
    position: relative;
    color: #2d3748;
}

.wl-bullets li:before {
    content: "✓";
    position: absolute;
    left: 0.8em;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
}

.wl-faq {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.wl-faq-item {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5em;
    border-left: 4px solid #667eea;
}

.wl-faq-question {
    font-size: 1.2em;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5em 0;
}

.wl-faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.wl-footer {
    text-align: center;
    padding: 2em 0;
    color: white;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .wl-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .wl-title {
        font-size: 2em;
    }
    
    .wl-subtitle {
        font-size: 1.2em;
    }
    
    .wl-content {
        padding: 2em 1.5em;
    }
    
    .wl-bullets {
        grid-template-columns: 1fr;
    }
}

/* White Label Banner on Party Dashboard */
.white-label-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5em 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.white-label-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2em;
    display: flex;
    align-items: center;
    gap: 1.5em;
}

.white-label-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.white-label-info {
    flex: 1;
}

.white-label-title {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.3em;
}

.white-label-name {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.white-label-text {
    font-size: 1em;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .white-label-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .white-label-avatar {
        width: 60px;
        height: 60px;
    }
    
    .white-label-name {
        font-size: 1.4em;
    }
}

/* Admin Dashboard Search Styles */
.search-container {
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}


/* Error Messages */
#billing-modal #payment-errors {
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 1rem;
    text-align: center;
}

/* Trust Badges - Smaller and better positioned */
#billing-modal .payment-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

#billing-modal .trust-badge {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}


/* Subscription Status Indicators */
.subscription-required {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0.5rem 0;
    color: #92400e;
    font-size: 0.9rem;
    text-align: center;
}

.subscription-status-active {
    color: #059669;
    font-weight: 600;
}

.subscription-status-inactive {
    color: #dc2626;
    font-weight: 600;
}

/* Subscription Status Badge */
.subscription-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.subscription-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.subscription-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* White Label Banner Styles */
.white-label-banner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.white-label-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.white-label-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.white-label-info {
    flex: 1;
}

.white-label-title {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.white-label-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.125rem;
}

.white-label-text {
    font-size: 0.875rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .white-label-banner {
        padding: 0.75rem 1rem;
    }
    
    .white-label-banner-content {
        gap: 0.75rem;
    }
    
    .white-label-avatar {
        width: 40px;
        height: 40px;
    }
    
    .white-label-name {
        font-size: 1rem;
    }
}

/* Secondary Button for Alert Modal Cancel Button */
.secondary-button {
    background: #6c757d;
    color: white;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    min-width: 100px;
    transition: background-color 0.2s ease;
}

.secondary-button:hover {
    background: #5a6268;
}

.secondary-button:active {
    background: #495057;
    transform: scale(0.98);
}

/* Alert Modal Styles */
#alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1010 !important;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

#alert-modal.show {
    display: flex !important;
}

#alert-modal .modal-content {
    max-width: 400px;
    min-width: 360px;
}

#alert-modal-title {
    margin: 0.5em 0;
    text-transform: uppercase;
}

#alert-modal-message {
    margin: 1.5em 0;
    line-height: 1.6;
    color: #374151;
}

#alert-modal-buttons {
    display: flex;
    gap: 0.5em;
    justify-content: center;
    margin-top: 1.5em;
}

/* Attempt Graph Styles (from test4.html) */
.attempt-graph-svg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1010;
}

.root-dot {
    fill: #0074D9;
    stroke: white;
    stroke-width: 1;
}

.child-node circle {
    fill: #3498db;
    stroke: black;
    stroke-width: 1;
}

.child-node text {
    fill: #fff;
    font-size: 10px;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    font-weight: 600;
    opacity: 0;
}

.link {
    stroke: #777;
    stroke-width: 1;
    fill: none;
}

/* ========================================
   Document Title Mapping Styles
   ======================================== */

/* Document titles section */
#document-titles-section {
    position: relative;
}

.title-item {
    display: flex;
    align-items: center;
    gap: 0.75em;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.5em;
    transition: all 0.2s;
}

.title-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.title-circle {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: #4b5563; /* Default dark gray solid */
    border: none; /* Remove border */
    cursor: grab;
    transition: all 0.2s;
    flex-shrink: 0;
}

/* IBM color-blind accessible palette for title circles */
.title-circle[data-color="#0f62fe"] { background: #0f62fe; } /* Blue - Summons */
.title-circle[data-color="#ee5396"] { background: #ee5396; } /* Magenta - Complaint */
.title-circle[data-color="#1192e8"] { background: #1192e8; } /* Cyan - Other titles */
.title-circle[data-color="#009d9a"] { background: #009d9a; } /* Teal - Civil Case Cover Sheet */
.title-circle[data-color="#8a3ffc"] { background: #8a3ffc; } /* Purple - Cross-complaint */
.title-circle[data-color="#ff832b"] { background: #ff832b; } /* Orange - ADR Package */

.title-circle:hover {
    background: #374151; /* Darker on hover (default) */
    transform: scale(1.15);
}

/* Hover states - slightly darker for colored circles */
.title-circle[data-color="#0f62fe"]:hover { background: #0050e6; }
.title-circle[data-color="#ee5396"]:hover { background: #d02670; }
.title-circle[data-color="#1192e8"]:hover { background: #0072c3; }
.title-circle[data-color="#009d9a"]:hover { background: #007d79; }
.title-circle[data-color="#8a3ffc"]:hover { background: #6929c4; }
.title-circle[data-color="#ff832b"]:hover { background: #eb6200; }

.title-circle:active {
    cursor: grabbing;
}

/* Completed status node - positioned inside badge on the left */
.status-badge #completed-status-node {
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: #4b5563; /* Default dark gray solid */
    border: none; /* Remove border */
    cursor: grab;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 50; /* Ensure it's above the badge text */
}

/* Add padding to status badge when it contains the completed node to make room for it */
/* Add padding to status badge when it has the completed node to make room for it */
.status-badge.has-completed-node {
    padding-left: 22px; /* Make room for 16px node + 6px left + 6px gap */
}

#completed-status-node.has-connection {
    cursor: grab;
    pointer-events: auto;
    background: #374151; /* Slightly darker when has connections */
}

#completed-status-node.has-connection:hover {
    transform: translateY(-50%) scale(1.2);
    background: #374151; /* Keep darker on hover */
}

#completed-status-node.has-connection:active {
    cursor: grabbing;
}

.title-text {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
}

/* Document connection node */
.document-connection-node {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4b5563; /* Dark gray solid */
    border: none; /* Remove border */
    z-index: 50;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
    pointer-events: none;
}

.document-connection-node.visible,
.document-connection-node.has-connections {
    opacity: 1;
    transform: scale(1);
}

.document-connection-node.has-connections {
    cursor: grab;
    pointer-events: auto;
    background: #374151; /* Slightly darker when has connections */
}

.document-connection-node.has-connections:hover {
    transform: scale(1.2);
    background: #374151; /* Keep darker on hover */
}

.document-connection-node.has-connections:active {
    cursor: grabbing;
}

/* Note connection node (reuses document-connection-node styles) */
.note-connection-node {
    position: absolute;
    top: 3px;
    left: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4b5563;
    border: none;
    z-index: 50;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
    pointer-events: none;
}

.note-connection-node.visible,
.note-connection-node.has-connection {
    opacity: 1;
    transform: scale(1);
}

.note-connection-node.has-connection {
    cursor: grab;
    pointer-events: auto;
    background: #374151;
}

.note-connection-node.has-connection:hover {
    transform: scale(1.2);
    background: #374151;
}

.note-connection-node.has-connection:active {
    cursor: grabbing;
}

/* Edge styles */
.drag-edge {
    stroke: #4b5563; /* Dark gray */
    stroke-width: 2;
    opacity: 0.8;
    pointer-events: none;
}

.break-edge {
    stroke: #ef4444; /* Keep red for breaking */
    opacity: 0.8;
    animation: dashOffset 1s linear infinite;
}

@keyframes dashOffset {
    to {
        stroke-dashoffset: -10;
    }
}

.permanent-edge {
    stroke: #4b5563; /* Default dark gray */
    stroke-width: 2;
    stroke-dasharray: none; /* Solid by default */
    opacity: 0.8;
    cursor: pointer;
    transition: none; /* Disable transitions that might interfere with dragging */
    pointer-events: none;
    /* Remove marker-end (arrow) */
}

/* Edges inherit color from title - IBM color-blind accessible palette */
.permanent-edge[data-color="#0f62fe"] { stroke: #0f62fe; } /* Blue - Summons */
.permanent-edge[data-color="#ee5396"] { stroke: #ee5396; } /* Magenta - Complaint */
.permanent-edge[data-color="#1192e8"] { stroke: #1192e8; } /* Cyan - Other titles */
.permanent-edge[data-color="#009d9a"] { stroke: #009d9a; } /* Teal - Civil Case Cover Sheet */
.permanent-edge[data-color="#8a3ffc"] { stroke: #8a3ffc; } /* Purple - Cross-complaint */
.permanent-edge[data-color="#ff832b"] { stroke: #ff832b; } /* Orange - ADR Package */

.permanent-edge:hover {
    stroke: #374151; /* Darker on hover (default) */
    stroke-width: 3;
    opacity: 1;
}

/* Hover states for colored edges - slightly darker */
.permanent-edge[data-color="#0f62fe"]:hover { stroke: #0050e6; stroke-width: 3; }
.permanent-edge[data-color="#ee5396"]:hover { stroke: #d02670; stroke-width: 3; }
.permanent-edge[data-color="#1192e8"]:hover { stroke: #0072c3; stroke-width: 3; }
.permanent-edge[data-color="#009d9a"]:hover { stroke: #007d79; stroke-width: 3; }
.permanent-edge[data-color="#8a3ffc"]:hover { stroke: #6929c4; stroke-width: 3; }
.permanent-edge[data-color="#ff832b"]:hover { stroke: #eb6200; stroke-width: 3; }

.permanent-edge.dragging-edge {
    stroke: #ef4444 !important; /* Red when dragging - overrides color */
    stroke-width: 2 !important;
    stroke-dasharray: 5,5 !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Document title badge */
.document-title-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 0.25em 0.5em;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 40;
}

/* PDF text overlay styling for proof_of_service.php */
.pdf-text {
    display: flex;
    align-items: flex-end;
}
