* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #2e7d32;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.menu {
    list-style: none;
}

.menu li {
    margin-bottom: 15px;
}

.menu li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.menu li a:hover {
    background-color: #1b5e20;
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: #e8f5e9;
    padding: 30px;
}

.main-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2e7d32;
}

.main-content p {
    margin-bottom: 20px;
    color: #1b5e20;
}

/* Cards */
.cards {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));*/
 /*   gap: 20px;*/
    margin-bottom: 30px;
}

.card {
    background-color: #66bb6a;
    padding: 20px;
    border-radius: 10px;
    color: #000000;
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    background-color: #388e3c;
}

/* Upload Form Container */
.upload-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 45px;
    max-width: 650px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    margin-top: 25px;
    animation: fadeIn 0.5s ease;
}

.upload-form h2 {
    color: #2e7d32;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 0.3px;
}

/* Form Group Styling */
.upload-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.upload-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #d32f2f;
    margin-left: 4px;
}

/* Inputs */
input[type="text"],
input[type="file"],
select {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input:focus,
select:focus {
    border-color: #2e7d32;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Upload Button */
.upload-form button[type="submit"] {
    background-color: #2e7d32;
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.upload-form button[type="submit"]:hover {
    background-color: #256828;
    transform: translateY(-2px);
}

/* Status Message */
#uploadStatus {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

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

    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }

    .menu {
        display: flex;
        gap: 10px;
    }

    .menu li {
        margin-bottom: 0;
    }

    .upload-form {
        padding: 30px 25px;
    }
}

/* User Settings Page Styling */
body {
    background: #e8f5e9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Message box */
main p strong {
    display: inline-block;
    background: #ffffff;
    padding: 10px 15px;
    border-left: 4px solid #2e7d32;
    border-radius: 6px;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 10px;
}

/* Form Container */
.form-container-pro {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 40px;
    max-width: 600px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    margin-top: 25px;
    animation: fadeIn 0.5s ease;
}

/* Form Title */
.form-title {
    color: #2e7d32;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 0.3px;
}

/* Form Layout */
.user-form-pro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.input-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #d32f2f;
    margin-left: 4px;
}

/* Inputs and Selects */
input[type="text"],
input[type="password"],
select {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

input:focus,
select:focus {
    border-color: #2e7d32;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Submit Button */
.btn-primary {
    background-color: #2e7d32;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background-color: #256828;
    transform: translateY(-2px);
}

/* Button Area */
.button-area {
    display: flex;
    justify-content: flex-end;
}

/* User Table */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.user-table th,
.user-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 15px;
}

.user-table th {
    background: #2e7d32;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-table tr:hover {
    background: #f1f8e9;
    transition: background 0.3s ease;
}

.user-table tr:last-child td {
    border-bottom: none;
}

/* Delete Button */
.delete-btn {
    color: #fff;
    background: #c62828;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s;
}

.delete-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* Responsive Layout */
@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
    }

    .form-container-pro {
        padding: 25px;
    }

    .user-table th,
    .user-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}