/* ========== Layout System ========== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body > *:not(.navbar):not(.site-footer) {
    flex: 1;
}

/* ========== Navbar ========== */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    
    border-bottom: 1px solid #222;
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0891b2 !important;
}
.navbar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #0891b2 !important;
    background: rgba(8,145,178,0.1);
}
.user-avatar-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}
.dropdown-menu {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.dropdown-item {
    color: #ccc;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
.dropdown-item:hover {
    background: rgba(8,145,178,0.15);
    color: #0891b2;
}
.dropdown-divider {
    border-color: #333;
}

/* ========== Page Container ========== */
.page-wrapper {
    padding: 2rem 0;
}
.page-header {
    margin-bottom: 2rem;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.page-title i {
    color: #0891b2;
    margin-right: 0.75rem;
}
.page-subtitle {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* ========== Cards ========== */
.card-dark {
    background: #000000;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}
.card-dark:hover {
    border-color: #333;
}
.card-header-dark {
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* ========== Grid System ========== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Section ========== */
.section-block {
    margin-bottom: 2rem;
}

/* ========== Footer ========== */
.site-footer {
    background: #000;
    border-top: 1px solid #222;
    padding: 3rem 0 0;
    margin-top: 3rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222;
}
.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0891b2;
    text-decoration: none;
}
.footer-logo:hover {
    color: #06b6d4;
}
.footer-desc {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.footer-col h5 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: #0891b2;
}
.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    color: #555;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ========== Stats Bar ========== */
.stats-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #999;
}
.stat-item i {
    color: #0891b2;
}
.stat-item strong {
    color: #fff;
}

/* ========== Breadcrumb ========== */
.breadcrumb-dark {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}
.breadcrumb-dark .breadcrumb-item a {
    color: #0891b2;
    text-decoration: none;
}
.breadcrumb-dark .breadcrumb-item.active {
    color: #666;
}
.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: #444;
}
