/* ===== Dashboard Styles ===== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 280px;
    background: var(--dark-color);
    color: var(--white);
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.user-profile {
    text-align: center;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.user-profile h3 {
    margin-bottom: 0.3rem;
}

.user-profile p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.badge-student {
    background: var(--primary-color);
}

.badge-mentor {
    background: var(--accent-color);
}

.badge-admin {
    background: var(--secondary-color);
}

.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left-color: var(--primary-color);
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

/* ===== Dashboard Main Content ===== */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: var(--light-color);
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.dashboard-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dashboard-section h2 i {
    color: var(--primary-color);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Dashboard Cards ===== */
.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.dashboard-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-card h3 i {
    color: var(--primary-color);
}

/* ===== Info Grid ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.3rem;
}

.info-item span {
    font-weight: 600;
    color: var(--dark-color);
}

/* ===== Progress List ===== */
.progress-item {
    margin-bottom: 1.5rem;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-header span {
    font-weight: 500;
}

.progress-header small {
    color: var(--gray);
}

.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ===== Activity List ===== */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.activity-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.activity-content p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== Courses List ===== */
.courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.course-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.course-item-header {
    padding: 1.5rem;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.course-item-header i {
    font-size: 2rem;
}

.course-item-body {
    padding: 1.5rem;
}

.course-item-body p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--gray);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.course-meta i {
    color: var(--primary-color);
}

/* ===== Subscriptions List ===== */
.subscription-item {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.subscription-info h4 {
    margin-bottom: 0.3rem;
}

.subscription-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.subscription-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.subscription-status {
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
}

.status-expired {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ===== Schedule ===== */
.schedule-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.schedule-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.schedule-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.schedule-detail-item {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
}

.schedule-detail-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.3rem;
}

.schedule-detail-item span {
    font-weight: 600;
    color: var(--dark-color);
}

/* ===== Certificates ===== */
.certificate-item {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.certificate-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.certificate-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

/* ===== Form Styles for Dashboard ===== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dashboard-card .form-group {
    margin-bottom: 1rem;
}

.dashboard-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.dashboard-card .form-group input,
.dashboard-card .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.dashboard-card .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.dashboard-card .form-group input:disabled {
    background: var(--light-color);
    cursor: not-allowed;
}

/* ===== Danger Zone ===== */
.danger-zone {
    border: 2px solid #ef4444;
}

.danger-zone h3 {
    color: #ef4444;
}

.btn-danger {
    background: #ef4444;
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}

.empty-state a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== Admin & Mentor Dashboard Specific ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.data-table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

.data-table tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-view {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
}

/* ===== Quick Actions ===== */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quick-action-btn i {
    color: var(--primary-color);
}

/* ===== Donation Specific ===== */
.donation-card {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.donation-card h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.donation-card p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.donation-amounts {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.donation-amount {
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.2rem;
}

.donation-amount:hover,
.donation-amount.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 1rem 0;
    }

    .user-profile h3,
    .user-profile p,
    .sidebar-nav a span {
        display: none;
    }

    .sidebar-nav a {
        justify-content: center;
        padding: 1rem;
    }

    .sidebar-nav a i {
        font-size: 1.3rem;
    }

    .dashboard-main {
        margin-left: 80px;
    }

    .avatar {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-row {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }
}
