/* custom-layout.css - Unified Stylesheet for AstroKul Panels */

/* 1. Unified Header & Layout Overrides (Admin and User Panels) */
.header {
    height: 60px !important;
    padding: 0 20px !important;
    background: #FFFFFF !important;
    border-bottom: 2px solid var(--border) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.main {
    padding-top: 60px !important;
}
.sidebar {
    top: 60px !important;
}
.header-logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}
@media (max-width: 991px) {
    .header-nav-links {
        display: none !important;
    }
}
.header-nav-links a {
    color: #6B7280;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.header-nav-links a.active, .header-nav-links a:hover {
    color: #C44D24;
}
.header-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #FFEDD5;
    color: #C44D24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 1px solid #E5E7EB;
}
.btn-dashboard-logout {
    background: transparent;
    border: 1.5px solid #C44D24;
    color: #C44D24;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-dashboard-logout:hover {
    background: #C44D24;
    color: #FFFFFF;
}

/* 2. Flatpickr calendar popup override */
.flatpickr-calendar {
    z-index: 100001 !important;
}

/* 3. Payments Stat Cards & Table elements */
.stat-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.stat-card {
    flex: 1;
    min-width: 160px;
    background: #FFF;
    border: 1.5px solid #E5DCD0;
    border-radius: 12px;
    padding: 18px 20px;
}
.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.stat-card .stat-val {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1F2937;
    line-height: 1;
}
.stat-card .stat-sub {
    font-size: 0.72rem;
    color: #9CA3AF;
    margin-top: 4px;
}
.stat-card.highlight {
    border-color: #C44D24;
    background: linear-gradient(135deg, #FFF7F5, #FFF);
}
.stat-card.highlight .stat-val {
    color: #C44D24;
}
.filter-bar {
    background: #FFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 22px;
}
.filter-bar select, .filter-bar input {
    border: 1.5px solid #E5E7EB;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.85rem;
    color: #1F2937;
    background: #FAFAFA;
}
.filter-bar label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 3px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.data-table thead tr {
    background: #C44D24;
}
.data-table thead th {
    padding: 11px 12px;
    color: #FFF;
    font-weight: 700;
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.data-table tbody tr {
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s;
}
.data-table tbody tr:hover {
    background: #FAF8F5;
}
.data-table tbody td {
    padding: 11px 12px;
    color: #374151;
    vertical-align: top;
}
.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-success {
    background: #D1FAE5;
    color: #065F46;
}
.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}
.badge-fail {
    background: #FEE2E2;
    color: #991B1B;
}
.badge-admin {
    background: #E0E7FF;
    color: #3730A3;
}
.renew-form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}
.renew-form select {
    border: 1px solid #E5DCD0;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.74rem;
    color: #374151;
}
.renew-form button {
    background: #C44D24;
    color: #FFF;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}
.renew-form button:hover {
    background: #A33A1A;
}

/* 4. Landing navigation links */
.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-link {
    color: #4B5563;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    color: #C44D24;
}
@media (max-width: 768px) {
    .nav-links-wrapper {
        display: none !important;
    }
}

/* 5. Floating Charts Drawer Styles */
#drawerTabsContainer::-webkit-scrollbar {
    display: none;
}
.drawer-tab-btn {
    transition: all 0.2s ease-in-out;
}
.drawer-tab-btn:hover {
    background: #FFF !important;
    color: #C44D24 !important;
}

/* 6. Verify OTP styles */
.verify-box {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 14px;
    border: 2px solid var(--primary);
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(196, 77, 36, .12);
}
.debug-banner {
    background-color: #FFEDD5;
    border: 1px dashed #C44D24;
    border-radius: 8px;
    color: #C44D24;
    padding: 12px;
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 7. Register styles */
.register-box {
    width: 100%; max-width: 480px;
    background: var(--white); border-radius: 14px;
    border: 2px solid var(--primary);
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(196, 77, 36, .12);
}

/* 8. Birth Time Rectification (BTR) */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.btr-event-card {
    background: #FFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease-in-out;
}
.btr-event-card:hover {
    border-color: #C44D24;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.btr-dasha-pill {
    background: #FEE2E2;
    color: #C44D24;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btr-dasha-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #FAF7F2;
    border-radius: 6px;
    border-left: 3px solid #6B7280;
    font-size: 0.85rem;
}
.btr-dasha-row.active-period {
    background: #FFF3CD;
    border-left-color: #D97706;
}
.btr-checkbox-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #FFF;
    cursor: pointer;
    transition: all 0.15s;
}
.btr-checkbox-card:hover {
    border-color: #D1D5DB;
    background: #FAF7F2;
}
.btr-checkbox-card.checked {
    border-color: #10B981;
    background: #ECFDF5;
}

/* 9. Pricing */
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(196, 77, 36, 0.12) !important;
    border-color: #C44D24 !important;
}
