.dashboard-container {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    text-align: left;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    /* background: linear-gradient(135deg, #4b0082, #007bff); */
    padding: 1.5rem;
    /* border-radius: 12px; */
    color: var(--text-color);
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); */
}

.dashboard-header h2 {
    font-size: 2.5rem;
}

.logout-btn {
    background: var(--background-color2);
    color: var(--p-color3);
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.5s, background 0.4s;
}

.logout-btn:hover {
    transform: scale(1.05);
    background: var(--background-gradient);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background: var(--background-color2);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.card h3 {
    font-family: "Montserrat", sans-serif;
    margin-bottom: 0.6rem;
    color: var(--text-color);
}

.card p {
    font-size: 0.95rem;
    color: var(--p-color1);
}

.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--background-color2);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.section h2 {
    font-family: "Montserrat", sans-serif;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.list {
    list-style: none;
    padding: 0;
}

.list li {
    padding: 1.2rem;
    border-bottom: 1px solid var(--shadow-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background: #fff; */
    margin-bottom: 0.8rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.list li:hover {
    /* background: #f0f0f0; */
}

.list li button {
    background: #4b0082;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 0.6rem;
    transition: background 0.2s;
}

.list li button:hover {
    background: #6a0dad;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    width: 95%;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-family: "Inter", sans-serif;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
}

.analytics-chart {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#error {
    margin-top: 1rem;
    font-family: "Inter", sans-serif;
    text-align: center;
    font-size: 1.1rem;
}

.progress-bar {
    background: #ddd;
    border-radius: 6px;
    height: 10px;
    margin-top: 0.5rem;
}

.progress-bar div {
    background: #4b0082;
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s;
}