/* ─── Base ─── */
html { scroll-behavior: smooth; }
.fs-7 { font-size: 0.85rem; }

/* ─── Toast ─── */
.toast { min-width: 300px; }
@media (max-width: 576px) {
    .toast { min-width: auto; width: calc(100% - 2rem); }
}

/* ─── Animations ─── */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f1a; }
::-webkit-scrollbar-thumb { background: #2a2a4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #FE6C17; }

/* ─── Tables ─── */
.table > :not(caption) > * > * {
    background: transparent !important;
    color: inherit;
}

/* ─── Dark form controls ─── */
.form-control-termmaila {
    background: #1e1e36 !important;
    border-color: #2a2a4a !important;
    color: #e0e0f0 !important;
}
.form-control-termmaila:focus {
    background: #1e1e36 !important;
    border-color: #FE6C17 !important;
    color: #e0e0f0 !important;
}
.form-control-termmaila:disabled,
.form-control-termmaila[readonly] {
    background: #16162a !important;
    border-color: #2a2a4a !important;
    color: #9090b0 !important;
    cursor: not-allowed;
}

/* ─── Form Focus ─── */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(254, 108, 23, 0.15) !important;
}

/* ─── Dropdown ─── */
.dropdown-menu-dark {
    background: #1a1a2e;
    border-color: #2a2a4a;
}
.dropdown-item {
    color: #c0c0d8 !important;
}
.dropdown-item:hover {
    background: rgba(254, 108, 23, 0.1);
    color: #fff !important;
}
.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b7a !important;
}
.dropdown-divider {
    border-color: #2a2a4a;
}

/* ─── Modal ─── */
.modal-content {
    background: #1a1a2e;
    border-color: #2a2a4a;
}
.modal-header .btn-close {
    filter: invert(0.7);
}

/* ─── Toast ─── */
.toast {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

/* ─── Badges ─── */
.badge {
    font-weight: 500;
}

/* ─── Nav tabs ─── */
.nav-pills .nav-link {
    border-radius: 0.5rem;
}

/* ─── Carousel ─── */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ─── Input group ─── */
.input-group .form-control-admin:focus {
    z-index: 5;
}

/* ─── Banner hero ─── */
.banner-hero {
    background-size: cover !important;
    background-position: center !important;
    transition: background 0.3s ease;
}
.text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.text-shadow .text-white-50 {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ─── Pagination ─── */
.page-link {
    background: #1a1a2e;
    border-color: #2a2a4a;
    color: #c0c0d8;
}
.page-link:hover {
    background: #2a2a4a;
    color: #FE6C17;
}
.page-item.active .page-link {
    background: #FE6C17;
    border-color: #FE6C17;
}

/* ─── News & Promotions ─── */
.news-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.news-card .news-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-img {
    transform: scale(1.05);
}
.news-card .news-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(0deg, rgba(15,15,26,0.95) 0%, rgba(15,15,26,0.4) 50%, rgba(15,15,26,0.1) 100%);
    pointer-events: none;
}
.news-card .news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.news-card .news-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem;
    z-index: 2;
}
.news-card .news-title {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card .news-excerpt {
    font-size: 0.82rem;
    color: #b0b0d0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.25rem;
}
.news-card .news-meta {
    font-size: 0.75rem;
    color: #8888aa;
    margin-top: 0.5rem;
}
.news-card .news-readmore {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}
.news-card:hover .news-readmore {
    opacity: 1;
    transform: translateY(0);
}

/* ─── News Detail ─── */
.news-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 1rem;
}
.news-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}
.news-detail-meta {
    color: #8888aa;
    font-size: 0.85rem;
}
.news-detail-content {
    color: #d0d0e0;
    font-size: 1rem;
    line-height: 1.8;
}
.news-detail-content p {
    margin-bottom: 1rem;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
    background: transparent;
    padding: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: #555577;
}
.breadcrumb-item.active {
    color: #8888aa;
}

/* ─── Alert in dark mode ─── */
.alert-warning {
    color: #ffc107;
}
.alert-info {
    color: #0dcaf0;
}
.alert-success {
    color: #198754;
}
.alert-danger {
    color: #dc3545;
}
