/**
 * MahaJ - Maharashtra eJournal
 * Dark Orange theme
 * Professional legal research UI
 */

:root {
    --app-surface: #ffffff;
    --app-primary: #9a3412;
    --app-primary-light: #c2410c;
    --app-primary-soft: #ffedd5;
    --app-accent: #ea580c;
    --app-accent-soft: #ffedd5;
    --app-green: #15803d;
    --app-green-soft: #dcfce7;
    --app-saffron: #ea580c;
    --app-saffron-soft: #ffedd5;
    --app-amber: #d97706;
    --app-amber-soft: #fef3c7;
    --app-rose: #e11d48;
    --app-rose-soft: #ffe4e6;
    --app-text: #1c1917;
    --app-text-soft: #44403c;
    --app-muted: #78716c;
    --app-border: #e7e5e4;
    --app-border-light: #f5f5f4;
    --app-radius: 16px;
    --app-radius-sm: 12px;
    --app-radius-lg: 20px;
    --app-shadow: 0 2px 8px rgba(154, 52, 18, 0.08);
    --app-shadow-md: 0 4px 16px rgba(154, 52, 18, 0.12);
    --app-shadow-lg: 0 8px 28px rgba(154, 52, 18, 0.15);
    --safe-top: env(safe-area-inset-top, 0);
    --safe-bottom: env(safe-area-inset-bottom, 0);
    --nav-height: 64px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fef7ed;
    background: linear-gradient(180deg, #fef7ed 0%, #fff7ed 40%, #ffedd5 100%);
    background-attachment: fixed;
    color: var(--app-text);
    line-height: 1.55;
    padding-top: calc(56px + var(--safe-top));
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 40px);
    min-height: 100vh;
}

/* App Header - Dark Orange gradient */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: calc(56px + var(--safe-top));
    padding-top: var(--safe-top);
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 50%, #ea580c 100%);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.35);
}

.app-menu-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.app-menu-btn:active {
    background: rgba(255,255,255,0.3);
}

.app-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.app-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.app-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    z-index: 1200;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.app-menu-drawer.open {
    transform: translateX(0);
}

.app-menu-user {
    padding: 28px 20px 24px;
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    color: white;
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.app-menu-user .app-menu-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    color: white;
    opacity: 0.9;
}

.app-menu-user .app-menu-close:hover {
    opacity: 1;
}

.app-menu-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-menu-username {
    font-size: 1.05rem;
    font-weight: 700;
}

.app-menu-email {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 4px;
}

.app-menu-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--app-muted);
    cursor: pointer;
}

.app-menu-list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
}

.app-menu-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--app-text);
    text-decoration: none;
    font-weight: 500;
}

.app-menu-list li a:hover {
    background: var(--app-primary-soft);
}

.app-menu-list li a i {
    font-size: 1.2rem;
    color: var(--app-primary);
}

.app-header .logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    flex: 1;
    min-width: 0;
}

.logo-img-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img-wrap img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    min-width: 0;
}

.app-header .brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    display: block;
}

.app-header .brand-short {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    letter-spacing: 0.01em;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header .btn-app-outline {
    border-color: rgba(255,255,255,0.8);
    color: white;
}

.app-header .btn-app-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

/* Bottom Navigation */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: calc(var(--nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border-top: 3px solid var(--app-primary);
    box-shadow: 0 -4px 20px rgba(154, 52, 18, 0.15);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
}

.app-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--app-muted);
    font-size: 0.68rem;
    font-weight: 500;
    transition: color 0.2s ease;
    min-height: 56px;
}

.app-bottom-nav a i {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.app-bottom-nav a.active {
    color: var(--app-primary);
    font-weight: 600;
}

.app-bottom-nav a.active i {
    color: var(--app-primary);
    font-weight: 700;
}

.app-bottom-nav a:active {
    opacity: 0.7;
}

.app-bottom-nav .nav-search-center {
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    color: #fff;
    border-radius: 12px;
    margin: 8px 2px;
    padding: 6px 4px;
    min-height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(154, 52, 18, 0.35);
}

.app-bottom-nav .nav-search-center i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.app-bottom-nav .nav-search-center span {
    font-size: 0.6rem;
}

.app-bottom-nav .nav-search-center i,
.app-bottom-nav .nav-search-center span {
    color: #fff !important;
}

.app-bottom-nav .nav-search-center:active {
    opacity: 0.9;
}

/* Main content */
.app-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 16px 12px;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 24px);
}

@media (min-width: 768px) {
    .app-content {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .app-content {
        max-width: 960px;
        padding: 24px 20px;
    }
}

/* Cards */
.app-card {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    padding: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--app-border-light);
}

.app-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: var(--app-text);
    letter-spacing: -0.02em;
}

/* Book Carousel */
.book-carousel-wrapper {
    margin-bottom: 24px;
    width: 100%;
}

.book-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.carousel-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    z-index: 2;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.4);
}

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

.book-carousel-track {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.book-carousel-track::-webkit-scrollbar {
    display: none;
}

.book-carousel-item {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--app-text);
}

.book-cover {
    width: 100%;
    aspect-ratio: 7/10;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--app-shadow-md);
    border: 2px solid var(--app-border-light);
    background: var(--app-surface);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.book-cover-placeholder i {
    font-size: 2.2rem;
    opacity: 0.95;
}

.book-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    color: var(--app-text-soft);
    line-height: 1.2;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--app-border);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dots span:hover {
    background: var(--app-primary-light);
}

.carousel-dots span.active {
    background: var(--app-primary);
    width: 24px;
    border-radius: 4px;
}

/* Quick action grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.app-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 16px 12px;
    background: var(--app-surface);
    border-radius: var(--app-radius-sm);
    border: 1px solid var(--app-border-light);
    box-shadow: var(--app-shadow);
    text-decoration: none;
    color: var(--app-text);
    transition: all 0.2s ease;
}

.app-grid-item:nth-child(1):hover { border-color: #ea580c; background: #ffedd5; }
.app-grid-item:nth-child(2):hover { border-color: #c2410c; background: #ffedd5; }
.app-grid-item:nth-child(3):hover { border-color: #9a3412; background: #fed7aa; }
.app-grid-item:nth-child(4):hover { border-color: #ea580c; background: #ffedd5; }
.app-grid-item:nth-child(5):hover { border-color: #c2410c; background: #fed7aa; }
.app-grid-item:nth-child(6):hover { border-color: #9a3412; background: #ffedd5; }

.app-grid-item:active {
    transform: scale(0.97);
}

.app-grid-item i {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.app-grid-item:nth-child(1) i { color: #9a3412; }
.app-grid-item:nth-child(2) i { color: #c2410c; }
.app-grid-item:nth-child(3) i { color: #9a3412; }
.app-grid-item:nth-child(4) i { color: #ea580c; }
.app-grid-item:nth-child(5) i { color: #c2410c; }
.app-grid-item:nth-child(6) i { color: #9a3412; }

.app-grid-item span {
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    color: var(--app-text-soft);
}

/* Judgement cards */
.app-judgement-card {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    padding: 14px;
    margin-bottom: 12px;
    border-left: 4px solid var(--app-primary);
    border-top: 1px solid var(--app-border-light);
    border-right: 1px solid var(--app-border-light);
    border-bottom: 1px solid var(--app-border-light);
    box-shadow: var(--app-shadow);
    transition: all 0.2s ease;
}

.app-judgement-card:nth-child(odd) { border-left-color: #9a3412; }
.app-judgement-card:nth-child(even) { border-left-color: #c2410c; }

.app-judgement-card:active {
    box-shadow: var(--app-shadow-md);
}

.app-judgement-card .judgement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.app-judgement-card .judgement-meta span {
    font-size: 0.75rem;
    color: var(--app-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-judgement-card .judgement-meta span i {
    font-size: 0.85rem;
}

.app-judgement-card .judgement-parties {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--app-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.app-judgement-card .judgement-parties .vs {
    font-weight: 500;
    color: var(--app-muted);
    margin: 0 4px;
}

.app-judgement-card .search-preview {
    font-size: 0.85rem;
    color: var(--app-text-soft);
    line-height: 1.5;
}

.app-judgement-card .search-preview mark {
    background: var(--app-amber-soft);
    color: var(--app-amber);
    padding: 0 2px;
    border-radius: 2px;
}

.app-judgement-card .judgement-advocate {
    font-size: 0.8rem;
    color: var(--app-muted);
    margin-bottom: 14px;
}

.app-judgement-card .btn-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    color: white;
    border: none;
    border-radius: var(--app-radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.app-judgement-card .btn-view:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.4);
}

.app-judgement-card .btn-view:active {
    transform: scale(0.98);
}

/* Section titles */
.app-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: var(--app-text);
    letter-spacing: -0.01em;
}

/* Buttons */
.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--app-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-app:active {
    transform: scale(0.98);
}

.btn-app-primary {
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    color: white;
}

.btn-app-primary:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(154, 52, 18, 0.35);
}

.btn-app-outline {
    background: transparent;
    color: var(--app-primary);
    border: 2px solid var(--app-primary);
}

.btn-app-outline:hover {
    background: var(--app-primary-soft);
    box-shadow: 0 2px 8px rgba(0, 31, 63, 0.2);
}

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

.btn-sm {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 0.78rem;
}

/* Form inputs */
.form-app input,
.form-app select,
.form-app textarea {
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    font-size: 1rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    margin-bottom: 18px;
    background: var(--app-surface);
    -webkit-appearance: none;
    appearance: none;
}

.form-app textarea {
    min-height: 80px;
    resize: vertical;
}

.form-app input::placeholder,
.form-app textarea::placeholder {
    color: var(--app-muted);
}

.form-app input:focus,
.form-app select:focus,
.form-app textarea:focus {
    outline: none;
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.15);
}

.form-app label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--app-text-soft);
}

/* Flash messages */
.app-flash {
    margin: 12px 12px;
    padding: 14px 18px;
    border-radius: var(--app-radius-sm);
    font-size: 0.9rem;
}

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

.app-flash-error {
    background: #fff1f2;
    color: #991b1b;
    border: 1px solid #fecdd3;
}

/* Auth */
.app-auth {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 12px;
}

.app-auth .app-card {
    padding: 22px 18px;
}

.login-card {
    border: 2px solid rgba(154, 52, 18, 0.2);
    border-top: 4px solid var(--app-primary);
    box-shadow: 0 8px 24px rgba(154, 52, 18, 0.15);
}

/* Empty state */
.app-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--app-muted);
}

.app-empty i {
    font-size: 2.8rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.app-empty p {
    font-size: 0.95rem;
}

/* Utilities */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.flex-grow-1 { flex-grow: 1; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.text-secondary { color: var(--app-muted); }
.small { font-size: 0.85rem; }
.text-success { color: #059669; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }

/* Back button */
.back-btn {
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--app-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.4);
}

/* Pagination */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--app-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.4);
}

.pagination-btn:disabled {
    background: var(--app-border);
    color: var(--app-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Latest judgements page - card styling */
.app-page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--app-text);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.app-judgement-card .summary-section {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.app-judgement-card .summary-indicator {
    width: 4px;
    background: var(--app-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.app-judgement-card .summary-content {
    flex: 1;
}

.app-judgement-card .summary-label {
    font-weight: 700;
    color: var(--app-text);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.app-judgement-card .summary-text {
    color: var(--app-text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

.app-judgement-card .court-date {
    font-size: 0.8rem;
    color: var(--app-muted);
    margin-bottom: 12px;
}

.app-judgement-card .headnote-tag {
    background: var(--app-green-soft);
    color: var(--app-green);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.view-full-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    color: white !important;
    border-radius: var(--app-radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.view-full-text:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: white !important;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.4);
}

.view-full-text::after {
    content: none;
}

.pagination-nav {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Search forms */
.search-container {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--app-border-light);
    box-shadow: var(--app-shadow);
}

.search-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background: var(--app-surface);
    margin-bottom: 14px;
}

.search-input:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.15);
}

.search-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #9a3412 0%, #c2410c 100%);
    color: white;
    border: none;
    border-radius: var(--app-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.search-button:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    box-shadow: 0 4px 14px rgba(154, 52, 18, 0.35);
}

.search-button:active {
    transform: scale(0.98);
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--app-muted);
    margin-bottom: 20px;
}

.instructions {
    color: var(--app-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 16px;
}

.results-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--app-text);
    margin-bottom: 16px;
}

.results-count {
    color: var(--app-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    font-size: 1rem;
    background: var(--app-surface);
    margin-bottom: 18px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select:focus {
    outline: none;
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.15);
}

.form-select:disabled {
    background-color: var(--app-border-light);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    font-weight: 600;
    color: var(--app-text-soft);
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm);
    font-size: 1rem;
    background: var(--app-surface);
    margin-bottom: 0;
}

.form-input:focus {
    outline: none;
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.15);
}
