/* ==========================================================================
   Shree Prabhu Puja Portal - Global Devotional Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

html,
body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -90px;
    padding: 0 0 90px;
}

.wrap > .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .wrap > .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ==========================================================================
   Navbar Styling (Deep Temple Navy with Sacred Gold Accent)
   ========================================================================== */
.navbar-inverse {
    background-color: #0f172a !important;
    border: none !important;
    border-bottom: 2.5px solid #f59e0b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.navbar-inverse .navbar-header {
    display: flex;
    align-items: center;
}

.navbar-inverse .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 17px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.navbar-inverse .navbar-brand:hover {
    opacity: 0.92;
}

.nav-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #f59e0b;
    background: #ffffff;
    padding: 2px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.nav-brand-title {
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.nav-brand-badge {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navbar Nav Links */
.navbar-inverse .navbar-nav > li > a {
    color: #f1f5f9 !important;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 14px;
    transition: all 0.2s ease;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fbbf24 !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #f59e0b !important;
    background-color: rgba(245, 158, 11, 0.15) !important;
    font-weight: 700;
}

.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
    color: #fbbf24 !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Dropdown Menus */
.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 8px !important;
    margin-top: 6px !important;
}

.dropdown-menu > li > a {
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    color: #92400e !important;
    background-color: #fef3c7 !important;
    transform: translateX(2px);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    color: #92400e !important;
    background-color: #fde68a !important;
    font-weight: 700 !important;
}

/* Logout Button in Navbar */
.nav li > form > button.logout {
    padding: 15px 14px;
    border: none;
    background: transparent;
    color: #fca5a5 !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav li > form > button.logout:hover,
.nav li > form > button.logout:focus {
    color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.12);
    border-radius: 8px;
    text-decoration: none;
    outline: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 12px 16px;
    }
}

/* Mobile Navbar Toggle */
.navbar-inverse .navbar-toggle {
    border-color: rgba(245, 158, 11, 0.5) !important;
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-radius: 8px !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    background-color: rgba(245, 158, 11, 0.25) !important;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #f59e0b !important;
}

/* ==========================================================================
   Buttons (Warm Gold, Emerald Green & Soft Slate)
   ========================================================================== */
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 7px 15px;
    transition: all 0.18s ease !important;
    letter-spacing: 0.1px;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4) !important;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25) !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background: linear-gradient(135deg, #22c55e 0%, #14532d 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35) !important;
    transform: translateY(-1px);
}

.btn-default {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}

.btn-default:hover,
.btn-default:focus {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.btn-warning {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-control {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    border-color: #d97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
}

/* ==========================================================================
   Card, GridView & Tables
   ========================================================================== */
.grid-view,
.panel,
.card-box {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table > thead > tr > th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 10px;
}

.table > tbody > tr > td {
    padding: 12px 10px;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}

.table-hover > tbody > tr:hover {
    background-color: #f8fafc;
}

/* Pagination */
.pagination > li > a,
.pagination > li > span {
    border-radius: 6px !important;
    margin: 0 2px;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.pagination > .active > a,
.pagination > .active > span {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

.pagination > li > a:hover {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert {
    border-radius: 10px !important;
    font-weight: 500;
    border-width: 1px !important;
}

.alert-success {
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.alert-warning {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

.alert-danger {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

.alert-info {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

/* ==========================================================================
   Mandir Portal Footer
   ========================================================================== */
.mandir-footer {
    background: #0f172a;
    border-top: 2.5px solid #f59e0b;
    color: #94a3b8;
    padding: 22px 15px;
    margin-top: 50px;
    text-align: center;
}

.footer-mantra {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.footer-copyright {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}
