* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f6fb;
    display: flex;
    min-height: 100vh; /* Ensure the body takes up the full viewport height */
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    
}

/* Sidebar */
/* Sidebar */
.sidebar {
    background-color: #2b3f98;
    width: 200px;
    padding: 20px;
    color: white;
}

.sidebar-header h2 {
    margin-bottom: 30px;
    color: #fff;
}

.menu ul {
    list-style-type: none;
    padding: 10px;
}

.menu ul li {
    margin-bottom: 20px;
    padding: 10px;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    padding: 10px; /* Reduced padding here */
    height: 40px; /* Set fixed height */
    border-radius: 8px;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.menu ul li a:hover {
    background-color: #3c49bf;
    padding: 10px; /* Increase padding on hover */
}

.menu ul li.active a {
    background-color: #19205a;
}

.logout {
    margin-top: 40px;
}

.logout a {
    color: white;
    text-decoration: none;
    display: block;
    padding-left: 30px;
}

.logout a:hover {
    color:red;
}


/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 20px;
    margin-top: 15px;
    overflow: hidden;
    height: 100vh;
width: 100vh;
}

.top-nav {
    display: flex;
    margin-bottom: 30px;
    margin-left: 30px;
}

/* .search-bar input[type="text"] {
    width: 300px;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid #ddd;
} */

.user-info .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Stats Cards */
.stats-cards {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 22%;
    text-align: center;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #22327c;
}

.card p {
    margin-bottom: 8px;
    font-size: 16px;
}

.card small {
    color: green;
}

/* Appointment History */
.submission-history {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    margin-top: 50px;
    width: 500px;
    margin-left: 30%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submission-history h4 {
    margin-bottom: 20px;
}

/* Task & Patient Section */
/* .task-detail-section {
    display: flex;
    justify-content: space-between;
} */

.detail-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    overflow-x: auto; /* Enable horizontal scrolling if needed */
}


.detail-section h4{
    padding-bottom: 10px;
}

.task-list {
    list-style-type: none;
}

.task-list li {
    margin-bottom: 10px;
}

.detail-section table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Ensure columns have equal width */
}

.detail-section table th, .detail-section table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.detail-section table th {
    background-color: #d6d6d6;
    font-weight: bold;
}
@media (max-width: 768px) {
    .detail-section table {
        font-size: 14px; /* Reduce font size for smaller screens */
    }

    .detail-section table th, .detail-section table td {
        padding: 8px; /* Reduce padding for smaller screens */
    }

    .detail-section table th {
        display: block; /* Display headers as separate lines */
        text-align: center;
    }

    .detail-section table td {
        text-align: left; /* Align data cells to the left */
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-cards {
        flex-wrap: wrap;
    }

    .stats-cards .card {
        width: 48%;
        margin-bottom: 20px;
    }

    .task-detail-section {
        flex-direction: column;
    }

    .task-section, .detail-section {
        width: 100%;
        margin-bottom: 20px;
    }
}
.submission-form-container {
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    margin-top: 150px;
    width: 500px;
    margin-left: 30%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: none;
}

.form-group textarea {
    resize: none;
}

.form-group input[type="file"] {
    border: none;
    padding: 0;
}

.form-group .select-image {
    display: block;
    margin: 0;
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.form-group .select-image:hover {
    background-color: #0056b3;
}

.form-group button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

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

.location-info {
    margin-top: 10px;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    border: 1px solid #ddd;
}