/* Core layout */
html, body {
    height: 100% !important;
    margin: 0 !important;
    background-color: #f7f7f9 !important;
    display: flex !important;
    flex-direction: column !important;
}
body > .container {
    flex: 1 0 auto !important;
}

/* Font setup */
body {
    font-family: 'Inter', sans-serif !important;
}

/* Slightly scale up headings using Zain */
h1, h2, h3, h4, h5, h6, .card-title {
    font-family: 'Zain', serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.25px !important;
}

/* Size adjustments */
h1 { font-size: 2.5rem !important; }
h2 { font-size: 2.2rem !important; }
h3 { font-size: 2rem !important; }
h4 { font-size: 1.9rem !important; }
h5 { font-size: 1.6rem !important; }
h6 { font-size: 1.4rem !important; }

.navbar-nav .nav-item {
    margin-right: 1.5rem !important;
}

/* Navigation */
.navbar {
    border-radius: 12px !important;
    padding: 1rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}
.navbar-nav .nav-link {
    font-weight: 500 !important;
    color: #333 !important;
}
.dropdown-menu {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
}

/* Buttons */
.vip-button {
    box-shadow: 0 0 0 0 #1E3A5F !important;
    background-color: #FFE274 !important;
    color: #1E3A5F !important;
    border: 1px solid #1E3A5F !important;
    border-radius: 8px !important;
    transition: 0.3s ease !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
}
.vip-button:hover,
.vip-button:focus,
.vip-button:active {
    background-color: #fcd34d !important;
    color: #1E3A5F !important;
    border-color: #1E3A5F !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
.vip-button:disabled {
    background-color: #e5e7eb !important;
    color: #6b7280 !important;
}

/* Footer */
footer {
    flex-shrink: 0 !important;
}

/* Utilities */
.text-muted small {
    font-size: 0.875rem !important;
}

/* Custom scrollable table */
.table-custom {
    font-size: 0.875rem !important;
    max-height: 250px !important;
    overflow-y: auto !important;
}
.table-custom thead {
    position: sticky !important;
    top: 0 !important;
    background: #fff !important;
}

/* Popover upsell styling */
.popover {
    max-width: 260px !important;
}
.popover-header {
    font-weight: bold !important;
    background-color: #FFE274 !important;
    color: #1E3A5F !important;
    border-bottom: 1px solid #1E3A5F !important;
}
.popover-body ul {
    padding-left: 1.2rem !important;
    margin: 0 !important;
}
.popover-body .btn {
    margin-top: 0.5rem !important;
}

/* Dashboard tiles */
.dashboard-tile {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04) !important;
    height: 100% !important;
}
.dashboard-tile h5 {
    font-size: 2rem !important;
    color: #1E3A5F !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
}

/* Cards */
.card {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
}
.card-body {
    padding: 1.5rem !important;
}
.card-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1E3A5F !important;
    margin-bottom: 1rem !important;
}

/* Flat buttons */
.flat-action-btn {
    font-weight: 600 !important;
    padding: 0.45rem 1rem !important;
    border-radius: 8px !important;
    background-color: #FFE274 !important;
    color: #1E3A5F !important;
    border: 2px solid #1E3A5F !important;
    box-shadow: 4px 4px 0 #1E3A5F !important;
    font-size: 0.95rem !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0.3px !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
    display: inline-block !important;
}
.flat-action-btn:hover {
    transform: translate(-1px, -1px) !important;
    box-shadow: 6px 6px 0 #1E3A5F !important;
    background-color: #fcd34d !important;
    color: #1E3A5F !important;
    text-decoration: none !important;
}

/* Table-style flat buttons — no shadow, clean, themed */
.btn-flat-view {
    background-color: #1E3A5F !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}

.btn-flat-view:hover {
    background-color: #162d49 !important;
    color: #fff !important;
}

.btn-flat-edit {
    background-color: #FFE274 !important;
    color: #1E3A5F !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}

.btn-flat-edit:hover {
    background-color: #fcd34d !important;
    color: #1E3A5F !important;
}

.btn-flat-delete {
    background-color: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}

.btn-flat-delete:hover {
    background-color: #b02a37 !important;
    color: #fff !important;
}


.search-input {
    border: 2px solid #1E3A5F !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    background-color: #fff !important;
    color: #1E3A5F !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
    height: calc(2.5rem + 2px) !important;
}

.search-btn {
    border: 2px solid #1E3A5F !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    background-color: #FFE274 !important;
    color: #1E3A5F !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
    height: calc(2.5rem + 2px) !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.search-btn:hover {
    background-color: #fcd34d !important;
    color: #1E3A5F !important;
    box-shadow: none !important;
}

/* Custom artsy flat checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1E3A5F;
    font-size: 0.95rem;
    user-select: none;
    cursor: pointer;
    gap: 0.5rem;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #1E3A5F;
    border-radius: 4px;
    background-color: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #FFE274;
    border-color: #1E3A5F;
}

.custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #1E3A5F;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

.announcement-carousel {
    position: relative;
    width: 100%;
}

.announcement-inner {
    position: relative;
    min-height: 140px;
}

.announcement-slide {
    display: none;
    background-color: #ffffff !important;
    border: 1px solid #1E3A5F !important;
    border-radius: 12px;
    box-shadow: 4px 4px 0 #1E3A5F;
    padding: 1.5rem;
    color: #1E3A5F;
    transition: opacity 0.4s ease;
}

.announcement-slide.active {
    display: block;
}

.announcement-title {
    font-family: 'Zain', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.announcement-message {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}



