@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-red: #da251d;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --border-color: #eaeaea;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #0d6efd;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: #333;
}

/* Sidebar */
.sidebar {
    height: 100vh;
    background-color: #fff;
    border-right: 1px solid var(--border-color);
    position: fixed;
    width: 250px;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-logo-container {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.nav-pills .nav-link {
    color: #333;
    padding: 12px 20px;
    margin: 4px 15px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-pills .nav-link i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: var(--primary-red);
    color: #fff;
}

.nav-pills .nav-link.active i {
    color: #fff;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #f1f1f1;
}

.instructor-profile {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructor-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px 30px;
}

/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar h2 {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.academy-select {
    border: none;
    background: transparent;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

/* Cards */
.stats-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    height: 100%;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stats-icon.red { background-color: var(--primary-red); }
.stats-icon.green { background-color: var(--success-color); }
.stats-icon.yellow { background-color: var(--warning-color); }
.stats-icon.blue { background-color: var(--info-color); }

.stats-info h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}

.stats-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stats-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

.card-title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.card-title-header h5 i {
    color: var(--primary-red);
}

/* Schedule Table */
.schedule-table th {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary-red);
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.schedule-table td {
    text-align: center;
    vertical-align: top;
    padding: 15px 10px;
}

.class-block {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    margin-bottom: 15px;
}

.class-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.class-details {
    font-size: 0.85rem;
}

.class-details strong {
    display: block;
    color: #333;
}

.class-details span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.time-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

/* Lists (Pending, Attendance) */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-details p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.amount {
    font-weight: 600;
    color: var(--primary-red);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.al-dia {
    color: var(--success-color);
}

.status-badge.pendiente {
    color: var(--primary-red);
}

.btn-custom-red {
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    width: 100%;
}

.btn-custom-red:hover {
    background-color: #b81f18;
    color: #fff;
}

.btn-outline-custom {
    border: 1px solid var(--border-color);
    color: #333;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.btn-outline-custom:hover {
    background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-nav-toggle {
        display: block !important;
    }
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    margin-right: 15px;
}
