/* ============================
   DataSearchWeb Theme: Green + White
   ============================ */

:root {
    --primary: #065F46; /* Forest Green */
    --secondary: #10B981; /* Emerald */
    --accent: #A3E635; /* Lime */
    --background: #FFFFFF; /* White */
    --surface: #F9FAFB; /* Light Gray */
    --text: #1F2937; /* Dark Gray */
    --muted: #6B7280;
    --border: #E5E7EB;
}

/* Global */
body {
    background-color: var(--background);
    color: var(--text);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}


.theme-navbar {
    background-color: var(--primary);
}

    .theme-navbar .nav-link {
        color: #ECFDF5 !important;
        margin-left: 15px;
    }

        .theme-navbar .nav-link:hover {
            color: var(--accent) !important;
        }



.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background-color: var(--secondary);
        border-color: var(--secondary);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        color: #fff;
    }



.theme-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}


.form-control {
    border-radius: 8px;
    border: 1px solid var(--border);
}

    .form-control:focus {
        border-color: var(--secondary);
        box-shadow: 0 0 0 0.15rem rgba(16, 185, 129, 0.25);
    }


.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 15px;
    color: var(--muted);
}
/* =========================
   Login Page Enhanced UI
   ========================= */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #ECFDF5, #FFFFFF);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

    .login-logo img {
        height: 65px;
        margin-bottom: 10px;
    }

    .login-logo h4 {
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 2px;
    }

.login-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
}

.form-label {
    font-weight: 600;
}

.form-control {
    border-radius: 10px;
    padding: 10px 14px;
}

    .form-control:focus {
        border-color: var(--secondary);
        box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
    }

    .form-control.is-invalid {
        border-color: #DC2626;
    }

.validation-message {
    color: #DC2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

/* subtle animation */
.animate-fade {
    animation: fadeInUp 0.6s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password eye icon */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--muted);
}

    .toggle-password:hover {
        color: var(--primary);
    }

/* Validation messages */
.validation-message {
    color: #DC2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}


/* =========================
   HEADER
   ========================= */

.app-header {
    height: 56px;
    background-color: var(--primary);
    color: #ECFDF5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 34px;
}

.app-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.welcome-text {
    font-size: 0.9rem;
}

.expiry-text {
    font-size: 0.85rem;
}

/* Logout button */
.logout-btn {
    border-radius: 20px;
    padding: 4px 14px;
    font-weight: 600;
}

.logout-icon {
    font-size: 1rem;
    margin-right: 4px;
}

/* =========================
   FOOTER
   ========================= */

.app-footer {
    height: 38px;
    background-color: #F3F4F6;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 0.8rem;
    color: var(--text);
}

.footer-center {
    color: var(--muted);
}





/* =========================
   DASHBOARD LAYOUT
   ========================= */

.dashboard-container {
    display: flex;
    height: calc(100vh - 91px); /* Header + Footer */
    background-color: #FFFFFF;
}

/* =========================
   SIDEBAR (FILTER PANEL)
   ========================= */

.dashboard-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #F9FAFB, #F3F4F6);
    padding: 16px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
}

/* Filter groups */
.filter-group {
    margin-bottom: 10px;
}

    .filter-group label {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 3px;
    }

/* Inputs */
.dashboard-sidebar .form-control,
.dashboard-sidebar .form-select {
    font-size: 0.85rem;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

    .dashboard-sidebar .form-control:focus,
    .dashboard-sidebar .form-select:focus {
        border-color: var(--secondary);
        box-shadow: 0 0 0 0.15rem rgba(16, 185, 129, 0.25);
    }

/* Action buttons */
.action-buttons {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

    .action-buttons .btn {
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 8px;
        padding: 8px;
    }

/* =========================
   MAIN CONTENT AREA
   ========================= */

.dashboard-content {
    flex: 1;
    padding: 14px;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Content Header */
.content-header {
    background-color: #ECFDF5;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .content-header h6 {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary);
    }

/* Search box */
.result-search {
    width: 220px;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 6px 8px;
}

/* =========================
   RESULT TABLE
   ========================= */

.result-table {
    flex: 1;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: #FFFFFF;
}

/* Table */
.dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
}

    /* Table header */
    .dashboard-table thead {
        background-color: var(--primary);
        color: #ECFDF5;
    }

    .dashboard-table th {
        padding: 8px;
        font-weight: 600;
        border: none;
        white-space: nowrap;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    /* Table body */
    .dashboard-table td {
        padding: 8px;
        border-top: 1px solid var(--border);
        vertical-align: middle;
    }

    /* Hover effect */
    .dashboard-table tbody tr:hover {
        background-color: #ECFDF5;
        cursor: pointer;
    }

    /* Empty state */
    .dashboard-table tbody td.text-muted {
        font-style: italic;
    }

/* =========================
   SCROLLBAR (OPTIONAL POLISH)
   ========================= */

.result-table::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.result-table::-webkit-scrollbar-thumb {
    background-color: #D1FAE5;
    border-radius: 4px;
}

.result-table::-webkit-scrollbar-track {
    background-color: #F9FAFB;
}

/* =========================
   RESPONSIVE BREAKPOINTS
   ========================= */

/* Tablets & below */
@media (max-width: 991px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: none;
    }

        .dashboard-sidebar.show {
            display: block;
        }

    .dashboard-content {
        padding: 10px;
    }

    .result-search {
        width: 180px;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .content-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .result-search {
        width: 100%;
    }

    .dashboard-table {
        font-size: 0.8rem;
    }

    .dashboard-sidebar {
        padding: 12px;
    }

    .action-buttons .btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}



/* =====================================================
   LEFT PANEL VISUAL REFINEMENT (SAFE ADD-ON)
   ===================================================== */

/* Slight inner separation for sidebar */
.dashboard-sidebar {
    background: linear-gradient(180deg, #FFFFFF, #F9FAFB);
}

    /* Sidebar header refinement */
    .dashboard-sidebar .sidebar-title,
    .sidebar-header h6 {
        letter-spacing: 0.3px;
    }

/* Filter card style (soft grouping) */
.filter-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .filter-card:hover {
        border-color: var(--secondary);
        box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    }

    /* Labels cleaner */
    .filter-card label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        margin-bottom: 4px;
    }

    /* Inputs inside filter cards */
    .filter-card .form-control,
    .filter-card .form-select {
        border-radius: 8px;
        font-size: 0.85rem;
    }

/* Sticky action area */
.sidebar-actions {
    position: sticky;
    bottom: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), #FFFFFF);
    padding-top: 10px;
}

    /* Action buttons refined */
    .sidebar-actions .btn {
        border-radius: 12px;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }

        .sidebar-actions .btn:hover {
            transform: translateY(-1px);
        }

/* Mobile polish */
@media (max-width: 991px) {
    .dashboard-sidebar {
        border-radius: 12px;
        margin-bottom: 10px;
    }
}


/* =====================================================
   CLEAR SEPARATION: SIDEBAR vs CONTENT AREA
   ===================================================== */

/* Strong vertical divider */
.dashboard-sidebar {
    position: relative;
}

    /* Divider line */
    .dashboard-sidebar::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 1px;
        height: 100%;
        background-color: var(--border);
    }

/* Soft shadow for depth */
.dashboard-sidebar {
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.04);
}

/* Content area contrast */
.dashboard-content {
    background-color: #FFFFFF;
    padding-left: 20px; /* breathing space from divider */
}

/* Desktop split-pane feel */
@media (min-width: 992px) {
    .dashboard-container {
        background-color: #F3F4F6; /* subtle contrast behind panels */
    }

    .dashboard-content {
        background-color: #FFFFFF;
        border-radius: 0 12px 12px 0;
    }

    .dashboard-sidebar {
        background-color: #FFFFFF;
        border-radius: 12px 0 0 12px;
    }
}

/* Mobile: remove divider (stacked layout) */
@media (max-width: 991px) {
    .dashboard-sidebar::after {
        display: none;
    }

    .dashboard-sidebar {
        box-shadow: none;
        border-bottom: 1px solid var(--border);
    }

    .dashboard-content {
        padding-left: 10px;
    }
}


/* =====================================================
   LEFT PANEL – HIGH VISIBILITY & EYE-CATCHING CONTROLS
   ===================================================== */

/* Make filter cards pop slightly */
.filter-card {
    background: linear-gradient(180deg, #FFFFFF, #F9FAFB);
    border: 1px solid var(--border);
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

    /* Stronger label presence */
    .filter-card label {
        color: var(--primary);
        font-weight: 700;
        font-size: 0.78rem;
    }

    /* Inputs more visible */
    .filter-card .form-control,
    .filter-card .form-select {
        background-color: #FFFFFF;
        border: 1.5px solid #D1FAE5;
        font-weight: 500;
    }

        /* Focus = very clear */
        .filter-card .form-control:focus,
        .filter-card .form-select:focus {
            border-color: var(--secondary);
            background-color: #ECFDF5;
            box-shadow: 0 0 0 0.18rem rgba(16, 185, 129, 0.35);
        }

        /* Placeholder clarity */
        .filter-card .form-control::placeholder {
            color: #9CA3AF;
            font-size: 0.8rem;
        }

/* Action buttons = primary attention */
.sidebar-actions .btn-success {
    background: linear-gradient(180deg, #10B981, #059669);
    border: none;
}

    .sidebar-actions .btn-success:hover {
        background: linear-gradient(180deg, #059669, #047857);
    }

/* Secondary buttons toned but visible */
.sidebar-actions .btn-outline-secondary,
.sidebar-actions .btn-outline-danger {
    border-width: 2px;
    font-weight: 600;
}

/* Button spacing clarity */
.sidebar-actions {
    gap: 10px;
}

/* Subtle left highlight strip */
.dashboard-sidebar {
    border-left: 4px solid var(--secondary);
}

/* Mobile: keep clarity */
@media (max-width: 991px) {
    .filter-card {
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
}

/* =====================================================
   LEFT PANEL – CLEAN & FLAT (NO GROUPING)
   ===================================================== */

/* Remove card / grouping visuals completely */
.filter-card {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 10px;
}

    /* Labels: solid black, clear */
    .dashboard-sidebar label,
    .filter-card label {
        color: #000000 !important;
        font-weight: 600;
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

/* Inputs & dropdowns: pure white background */
.dashboard-sidebar .form-control,
.dashboard-sidebar .form-select {
    background-color: #FFFFFF !important;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
}

    /* Focus state: clean, professional */
    .dashboard-sidebar .form-control:focus,
    .dashboard-sidebar .form-select:focus {
        background-color: #FFFFFF;
        border-color: var(--secondary);
        box-shadow: 0 0 0 0.15rem rgba(16, 185, 129, 0.25);
    }

/* Remove left highlight strip if any */
.dashboard-sidebar {
    border-left: none !important;
}

/* Tighten spacing for flat look */
.filter-group,
.filter-card {
    margin-bottom: 12px;
}

/* Action buttons stay strong */
.sidebar-actions .btn,
.action-buttons .btn {
    border-radius: 8px;
    font-weight: 600;
}


/* =========================
   EXPIRY DATE – SIMPLE & CLEAR
   ========================= */

.expiry-text {
    color: #ECFDF5; /* soft white */
    font-size: 0.85rem;
}

.expiry-date {
    color: #FFFFFF; /* pure white */
    font-weight: 700; /* bold */
    margin-left: 4px;
}
