/* === WillProof Stylesheet === */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1B5FAE;
    --primary-dark: #154A8A;
    --primary-light: #EBF2FA;
    --accent: #2BB5B8;
    --accent-dark: #239496;
    --accent-light: #E6F7F7;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    line-height: 1.7;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.5rem 0;
}

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

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    color: #fff;
}

.section-cta h2 {
    color: #fff;
}

.section-cta p {
    color: rgba(255,255,255,0.85);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* --- Grid --- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

/* --- Navbar --- */
.navbar {
    background: #fff;
    border-bottom: 2px solid var(--gray-100);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--gray-900);
    text-decoration: none;
}

.nav-brand:hover {
    text-decoration: none;
}

.nav-brand strong {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    color: var(--gray-700);
    font-size: 1rem;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-links a.btn-primary {
    color: #fff;
}

.nav-links a.btn-primary:hover {
    color: #fff;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
    text-align: center;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.section-cta .btn-primary {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
}

.section-cta .btn-primary:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

/* --- Cards --- */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.card-link:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.card-docs {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.card-docs ul {
    margin-top: 0.25rem;
    padding-left: 1.25rem;
}

/* --- Hero --- */
.hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 40%, var(--accent-light) 100%);
    position: relative;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-700);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* --- Features --- */
.feature {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.feature:hover {
    box-shadow: var(--shadow-md);
}

.feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: var(--primary);
}

.feature p {
    color: var(--gray-700);
    font-size: 1rem;
}

/* --- Step Numbers --- */
.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* --- Pricing --- */
.pricing-card {
    text-align: center;
    position: relative;
}

.pricing-card h3 {
    font-size: 1.25rem;
}

.pricing-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-subtitle {
    color: var(--gray-500);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
}

.pricing-features li::before {
    content: "\2713\0020";
    color: var(--accent);
    font-weight: bold;
}

/* --- Forms --- */
.form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43, 181, 184, 0.15);
}

.form-control-file {
    width: 100%;
    padding: 0.65rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    background: var(--gray-50);
}

.form-control-file:hover {
    border-color: var(--accent);
}

.form-error {
    display: block;
    color: var(--danger);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

.form-hint {
    display: block;
    color: var(--gray-500);
    font-size: 0.88rem;
    margin-top: 0.25rem;
}

/* --- Alerts --- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 1rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid #bfdbfe;
}

/* --- Dashboard --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.status-active, .status-trial {
    color: var(--success);
}

.status-cancelled, .status-past_due {
    color: var(--danger);
}

/* --- Tables --- */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.table th, .table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* --- Badges & Verdicts --- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.badge-complete {
    background: #ecfdf5;
    color: var(--success);
}

.badge-processing {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.badge-failed {
    background: #fef2f2;
    color: var(--danger);
}

.verdict {
    font-weight: 600;
    font-size: 0.95rem;
}

.verdict-approved {
    color: var(--success);
}

.verdict-not_approved {
    color: var(--danger);
}

.verdict-conditional {
    color: var(--warning);
}

/* --- Report --- */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.verdict-banner {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.verdict-approved {
    background: #ecfdf5;
    color: var(--success);
    border: 2px solid var(--success);
}

.verdict-not_approved {
    background: #fef2f2;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.verdict-conditional {
    background: #fffbeb;
    color: var(--warning);
    border: 2px solid var(--warning);
}

.verdict-review {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.report-content {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* --- Spinner --- */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hint {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    background: var(--gray-900);
    border-top: 3px solid var(--accent);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-300);
}

.footer a {
    color: var(--accent);
}

.footer a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    font-size: 0.88rem;
}

.footer-company {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.footer-company p {
    margin-bottom: 0.25rem;
}

.footer-company a {
    color: var(--accent);
}

/* --- Upload Page --- */

.form-label-strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Radio card group */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-card {
    display: block;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: center;
}

.radio-card:hover {
    border-color: var(--primary);
}

.radio-card-active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-label {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.radio-card-desc {
    display: block;
    font-size: 0.88rem;
    color: var(--gray-500);
}

/* Drop zone */
.drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--gray-50);
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: var(--accent);
}

.drop-zone-active {
    border-color: var(--accent);
    background: var(--accent-light);
    border-style: solid;
}

.drop-zone-icon {
    width: 48px;
    height: 48px;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.drop-zone-active .drop-zone-icon {
    color: var(--accent);
}

.drop-zone-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.drop-zone-or {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.drop-zone-btn {
    cursor: pointer;
}

.drop-zone-formats {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
}

/* File list */
.file-list {
    margin-top: 1.5rem;
}

.file-list h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.file-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    background: #fff;
    transition: border-color 0.15s;
}

.file-row:hover {
    border-color: var(--gray-300);
}

/* File icon badges */
.file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.file-icon-pdf {
    background: #fef2f2;
    color: #dc2626;
}

.file-icon-doc {
    background: #eff6ff;
    color: #2563eb;
}

.file-icon-img {
    background: #f0fdf4;
    color: #16a34a;
}

.file-icon-file {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* File info */
.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.file-size-warning {
    color: var(--warning);
    font-weight: 500;
}

/* Doc type select */
.file-type-select {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-family: inherit;
    background: #fff;
    min-width: 180px;
    cursor: pointer;
}

.file-type-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(43, 181, 184, 0.15);
}

/* Remove button */
.file-remove {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--gray-300);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.file-remove:hover {
    color: var(--danger);
    background: #fef2f2;
}

/* Validation errors */
.upload-validation {
    margin-top: 1rem;
}

.upload-error {
    color: var(--danger);
    font-size: 0.92rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

/* Disabled button state */
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-brand strong {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding-top: 0.5rem;
        border-top: 1px solid var(--gray-100);
        margin-top: 0.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }

    .report-header {
        flex-direction: column;
        gap: 1rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .file-row {
        flex-wrap: wrap;
    }

    .file-type-select {
        min-width: 100%;
        order: 10;
    }
}

/* --- Processing Page --- */
.processing-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-md);
}

.processing-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.processing-info p {
    margin: 0.25rem 0;
    color: var(--gray-700);
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.progress-step .step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
    background: var(--gray-100);
    color: var(--gray-500);
    border: 2px solid var(--gray-200);
}

.progress-step .step-label {
    font-size: 0.95rem;
}

.progress-step.active {
    color: var(--primary);
}

.progress-step.active .step-icon {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.progress-step.active .step-label {
    font-weight: 600;
}

.progress-step.completed {
    color: var(--success);
}

.progress-step.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-light);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-status {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary-dark);
}

.processing-status small {
    color: var(--gray-500);
}

.processing-timer {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-top: 1rem;
}

.processing-timer #elapsed-time {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-size: 1.3rem;
}

.processing-note {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 0.9rem;
    text-align: left;
}

.processing-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 1.5rem;
}

.processing-error h2 {
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.processing-error p {
    color: var(--gray-700);
}

/* --- Admin Panel --- */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card-danger .stat-value {
    color: var(--danger);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.admin-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.admin-card h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.admin-card-danger {
    border-color: #fca5a5;
    background: #fef2f2;
}

.admin-card-danger h3 {
    color: var(--danger);
    border-bottom-color: #fca5a5;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background: var(--gray-50);
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge-trial { background: #fffbeb; color: #92400e; }
.badge-solo { background: var(--primary-light); color: var(--primary-dark); }
.badge-practice { background: var(--accent-light); color: var(--accent-dark); }
.badge-firm { background: #ecfdf5; color: #065f46; }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-complete { background: #ecfdf5; color: var(--success); }
.badge-failed { background: #fef2f2; color: var(--danger); }
.badge-processing { background: #eff6ff; color: var(--primary); }
.badge-uploaded { background: #fffbeb; color: #92400e; }

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

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

.detail-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: var(--gray-900);
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-action-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
}

.btn-danger:hover {
    background: #b91c1c;
}

.report-preview {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Report Formatted Content --- */
.report-content-formatted {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-700);
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

/* --- Settings Page --- */
.settings-section {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.settings-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 1.1rem;
}

.logo-preview {
    max-width: 200px;
    max-height: 80px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.5rem;
    background: #fff;
}
