/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
}

.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #333333;
    margin-bottom: 1rem;
}

p {
    color: #666666;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

/* Header Section */
.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.dashboard-header p {
    font-size: 1.2rem;
    color: #555555;
}

/* Overview Section */
.dashboard-overview {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    flex: 1;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border: 1px solid #dddddd;
    border-radius: 8px;
    text-align: center;
}

.overview-card h2 {
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.overview-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
}

/* Table Section */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.dashboard-table th, .dashboard-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border: 1px solid #dddddd;
}

.dashboard-table th {
    background-color: #f1f1f1;
    font-weight: bold;
    color: #333333;
}

.dashboard-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.dashboard-table tr:hover {
    background-color: #f1f1f1;
}

.dashboard-table .table-button {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.dashboard-table .table-button.danger {
    background-color: #dc3545;
}

.dashboard-table .table-button:hover {
    background-color: #0056b3;
}

/* Notifications Section */
.notifications-section {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.notifications-section h2 {
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 0.8rem;
}

.notifications-section p {
    font-size: 1rem;
    color: #555555;
}

/* Quick Actions Section */
.actions-section {
    margin-bottom: 2rem;
}

.actions-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.actions-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.action-button {
    flex: 1;
    min-width: 150px;
    background-color: #28a745;
    color: #ffffff;
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #218838;
}

.action-button.danger {
    background-color: #dc3545;
}

.action-button.danger:hover {
    background-color: #c82333;
}

/* Profile Picture Section */
.profile-picture {
    display: block;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
    width: 100px;
    height: 100px;
    border: 2px solid #dddddd;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.course-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-info {
    padding: 1rem;
    text-align: left;
}

.course-info h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #333;
}

.course-info p {
    margin: 0.25rem 0;
    color: #555;
    font-size: 0.95rem;
}

.action-button {
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-overview {
        flex-direction: column;
        gap: 1rem;
    }

    .actions-grid {
        flex-direction: column;
        gap: 1rem;
    }
}
