/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

body {
    background-color: #1f1f1f;
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

/* Sidebar Layout */
.sidebar {
    position: fixed;
    top: 30px;
    left: 20px;
    bottom: 30px;
    width: 220px;
    padding: 2rem 1rem;
    background-color: #2b2b2b;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.nav-link {
    color: #8c8c8c !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: #363636;
}

.nav-link.active {
    background-color: #363636 !important;
    color: #00c6af !important;
    box-shadow: inset 5px 0 0 #00c6af;
}

/* Content Area */
.content {
    margin-left: 260px;
    padding: 2rem 3rem;
    min-height: 100vh;
}

/* Cards */
.custom-card {
    background-color: #2b2b2b;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    color: #8c8c8c;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

h2 {
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
}

.accent-text {
    color: #00c6af;
}

/* Override standard Bootstrap tabs if used */
.nav-tabs {
    border-bottom: 1px solid #3d3d3d;
}
.nav-tabs .nav-link.active {
    background-color: transparent !important;
    border-color: transparent !important;
    border-bottom: 3px solid #00c6af !important;
    color: #00c6af !important;
}

/* --- Mobile Redesign --- */
@media (max-width: 900px) {
    .sidebar {
        position: relative;
        top: 0;
        left: 0;
        bottom: auto;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar .nav {
        flex-direction: row !important;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .nav-link {
        white-space: nowrap;
        margin-bottom: 0;
        margin-right: 10px;
        padding: 10px 15px !important;
        font-size: 0.95rem;
    }
    
    .nav-link.active {
        box-shadow: inset 0 -4px 0 #00c6af;
    }

    .content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .custom-card {
        padding: 1rem;
    }
}

/* --- UI Controls: Pagination & Custom Tabs --- */
.pagination-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #363636;
    border-radius: 20px;
    padding: 5px 15px;
    margin: 10px 0;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.pagination-btn {
    background: transparent;
    border: none;
    color: #8c8c8c;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s;
}

.pagination-btn:hover {
    color: #fff;
}

.pagination-btn:disabled {
    color: #444;
    cursor: default;
}

.pagination-label {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    min-width: 120px;
    text-align: center;
}

.pill-tabs {
    display: flex;
    background: #1f1f1f;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.pill-tab {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    color: #8c8c8c;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}

.pill-tab:hover {
    color: #fff;
}

.pill-tab.active {
    background: #363636;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
