/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
    margin-top: 70px;
}

.dashboard-sidebar {
    width: 280px;
    background-color: #f8f9fa;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
}

.dashboard-main {
    flex: 1;
    padding: 30px;
    margin-left: 280px;
    transition: all 0.3s ease;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #343a40;
}

.dashboard-title i {
    margin-right: 10px;
    color: #007bff;
}

/* User Profile */
.user-profile {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.profile-image {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.edit-profile-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

.user-profile h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 0 20px;
}

.sidebar-nav .nav-link {
    color: #495057;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.sidebar-nav .nav-link.active {
    background-color: #007bff;
    color: white;
}

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

/* Stats Cards */
.stats-cards {
    margin-bottom: 30px;
}

.stats-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stats-card .card-body {
    display: flex;
    align-items: center;
    padding: 20px;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.5rem;
}

.stats-info {
    flex: 1;
}

.stats-info h5 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

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

/* Cards */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}

.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.card-header i {
    margin-right: 10px;
    color: #007bff;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Profile Preview */
.profile-preview {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        z-index: 1030;
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }
    
    .toggle-sidebar-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 20px 15px;
    }
    
    .stats-card .card-body {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Toggle Sidebar Button */
.toggle-sidebar-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1040;
    transition: all 0.3s ease;
}

.toggle-sidebar-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-up {
    animation: slideUp 0.5s ease;
}

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

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
