/* Dashboard Styles */

/* Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    min-height: 100vh;
    padding: 1rem;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar .logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link i {
    width: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: #f8f9fa;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Progress Bars */
.progress {
    height: 0.5rem;
}

/* Calendar */
#dashboardCalendar {
    min-height: 400px;
}

/* Notifications */
.dropdown-menu {
    min-width: 300px;
}

.dropdown-item {
    white-space: normal;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

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

/* Profile Image */
.rounded-circle {
    border: 2px solid #fff;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -250px;
        z-index: 1000;
        height: 100vh;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Charts */
canvas {
    max-width: 100%;
}

/* Section Titles */
.section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* Stats Cards */
.card .display-4 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #0d6efd;
}

/* Course Cards */
.course-card {
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.main-content {
    flex: 1;
    background-color: #f8f9fa;
}

/* Sidebar Styles */
.sidebar-header {
    padding: 1rem 0;
    text-align: center;
}

.sidebar .logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Calendar Styles */
#dashboardCalendar {
    height: 600px;
    background-color: #fff;
}

.fc-event {
    cursor: pointer;
    transition: all 0.3s ease;
}

.fc-event:hover {
    transform: scale(1.02);
}

/* Study Timer Styles */
.timer-display {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* Todo List Styles */
.todo-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.todo-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.todo-item.completed {
    opacity: 0.7;
}

.todo-item .due-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Goal Tracker Styles */
.goal-item {
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.goal-progress {
    height: 4px;
    margin-top: 0.5rem;
}

/* Study Buddies Styles */
.peer-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.peer-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.peer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.peer-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: auto;
}

.peer-status.online {
    background-color: #28a745;
}

.peer-status.offline {
    background-color: #dc3545;
}

.peer-status.busy {
    background-color: #ffc107;
}

/* Toast Notifications */
.toast {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -250px;
        height: 100vh;
        z-index: 1000;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Animations */
.progress-bar {
    transition: width 0.6s ease;
}

/* Notification Badge Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.notification-badge {
    animation: pulse 2s infinite;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Quick Action Cards */
.action-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: none;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: inherit;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.action-card .bi {
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.action-card h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.action-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.action-card .badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    transition: all 0.3s ease;
}

/* Card Variants */
.quiz-card::before { background: #0d6efd; }
.quiz-card .action-icon { background: rgba(13, 110, 253, 0.1); }
.quiz-card .bi { color: #0d6efd; }

.study-card::before { background: #198754; }
.study-card .action-icon { background: rgba(25, 135, 84, 0.1); }
.study-card .bi { color: #198754; }

.practice-card::before { background: #0dcaf0; }
.practice-card .action-icon { background: rgba(13, 202, 240, 0.1); }
.practice-card .bi { color: #0dcaf0; }

.mentor-card::before { background: #ffc107; }
.mentor-card .action-icon { background: rgba(255, 193, 7, 0.1); }
.mentor-card .bi { color: #ffc107; }

.project-card::before { background: #6c757d; }
.project-card .action-icon { background: rgba(108, 117, 125, 0.1); }
.project-card .bi { color: #6c757d; }

.community-card::before { background: #dc3545; }
.community-card .action-icon { background: rgba(220, 53, 69, 0.1); }
.community-card .bi { color: #dc3545; }

/* Quiz Progress Widget */
.quiz-progress-widget .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.progress-stat {
    text-align: center;
}

.stat-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.circular-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke: #0d6efd;
    stroke-width: 3;
    stroke-linecap: round;
    transition: all 0.3s ease;
}

.stat-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
}

.quiz-item {
    padding: 0.5rem 0;
}

.quiz-item .progress {
    height: 8px;
    border-radius: 4px;
}

.quiz-item .badge {
    font-weight: 500;
}

/* Hover Effects */
.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-card:hover .bi {
    transform: scale(1.1);
}

.action-card:hover .badge {
    transform: translateY(-2px);
}

/* Section Title */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #0d6efd;
    border-radius: 2px;
}
