:root {
    --cf-primary: #0e76a8;
    --cf-primary-dark: #095d85;
    --cf-secondary: #00c9a7;
    --cf-dark: #1e293b;
    --cf-accent: #ff6b35;
    --cf-light: #f8fafc;
    --cf-sidebar-bg: #f1f5f9;
    --cf-sidebar-hover: #e2e8f0;
    --cf-sidebar-text: #475569;
    --cf-sidebar-active: #0e76a8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cf-light);
    color: #334155;
}

.top-bar {
    background: var(--cf-dark);
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 6px 0;
}

.top-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: #fff;
}

.navbar {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.navbar .nav-link {
    font-weight: 500;
    color: #475569;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.navbar .nav-link:hover {
    color: var(--cf-primary);
    background: rgba(14, 118, 168, 0.06);
}

.nav-cta-btn {
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
}

.hero {
    background: linear-gradient(135deg, var(--cf-primary) 0%, var(--cf-primary-dark) 50%, var(--cf-secondary) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.feature-box {
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(14, 118, 168, 0.12);
}

.feature-box .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.package-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.package-card .card-header {
    background: linear-gradient(135deg, var(--cf-primary), var(--cf-primary-dark));
    color: #fff;
    text-align: center;
    padding: 20px;
    border: none;
}

.package-card .speed {
    font-size: 2rem;
    font-weight: 700;
}

.package-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cf-primary);
}

.package-card .price small {
    font-size: 0.9rem;
    color: #6c757d;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--cf-secondary);
    margin-right: 8px;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cf-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--cf-primary) 0%, var(--cf-secondary) 100%);
    color: #fff;
    padding: 60px 0;
}

.speedtest-frame {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
}

.stat-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: var(--cf-sidebar-bg);
    border-right: 1px solid #e2e8f0;
}

.admin-sidebar .nav-link {
    color: var(--cf-sidebar-text);
    padding: 10px 16px;
    border-radius: 8px;
    margin: 2px 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover {
    color: var(--cf-sidebar-active);
    background: var(--cf-sidebar-hover);
}

.admin-sidebar .nav-link.active {
    color: #fff;
    background: var(--cf-primary);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

footer.site-footer {
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0;
}

footer.site-footer h5 {
    color: #1e293b;
    font-weight: 600;
}

footer.site-footer p,
footer.site-footer a,
footer.site-footer small,
footer.site-footer li {
    color: #64748b !important;
}

footer.site-footer a:hover {
    color: var(--cf-primary) !important;
}

footer.site-footer hr {
    border-color: #cbd5e1;
}

footer.site-footer .social-icon {
    color: #64748b;
    transition: color 0.2s;
}

footer.site-footer .social-icon:hover {
    color: var(--cf-primary);
}

.badge-pending { background-color: #ffc107; color: #000; }
.badge-active { background-color: #28a745; }
.badge-approved { background-color: #28a745; }
.badge-rejected { background-color: #dc3545; }
.badge-suspended { background-color: #dc3545; }
.badge-open { background-color: var(--cf-primary); }
.badge-in_progress { background-color: #ffc107; color: #000; }
.badge-resolved { background-color: #28a745; }
.badge-closed { background-color: #6c757d; }
.badge-unpaid { background-color: #ffc107; color: #000; }
.badge-paid { background-color: #28a745; }
.badge-cancelled { background-color: #dc3545; }

.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 767.98px) {
    
    .admin-sidebar {
        display: none !important;
    }
    
    .admin-sidebar + main {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        min-height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .admin-sidebar .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .admin-sidebar .nav-link {
        padding: 8px 12px;
        margin: 2px;
        font-size: 0.85rem;
    }
    
    #adminMobileNav .nav-link {
        color: var(--cf-sidebar-text);
        font-size: 0.9rem;
        border-radius: 6px;
    }
    #adminMobileNav .nav-link:hover {
        background: var(--cf-sidebar-hover);
        color: var(--cf-sidebar-active);
    }
    #adminMobileNav .nav-link i {
        width: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    .hero {
        padding: 40px 0;
    }
    .nav-cta-btn {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
    }
    .feature-box {
        margin-bottom: 1rem;
        padding: 1.5rem 1rem;
    }
    .package-card .speed {
        font-size: 1.5rem;
    }
    .package-card .price {
        font-size: 1.4rem;
    }
    .stat-card .card-body {
        padding: 0.75rem;
    }
    .stat-card .icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .stat-card h5 {
        font-size: 1rem;
    }
    .table th, .table td {
        font-size: 0.85rem;
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
    }
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    .card-header h6 {
        font-size: 0.9rem;
    }
    .d-flex.gap-1 {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    .hero {
        padding: 30px 0;
    }
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .card-body {
        padding: 0.75rem;
    }
    .table-responsive {
        font-size: 0.8rem;
    }
    footer .row > div {
        text-align: center;
    }
    footer .col-md-2, footer .col-md-3 {
        margin-bottom: 1rem;
    }
}
