/* Reset basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and general layout */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fc;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
nav {
    background-color: #0066cc;
    color: #fff;
    padding: 15px;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
}

nav a:hover {
    background-color: #004d99;
}

/* Main content section */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* Header for main content */
h1, h2, h3 {
    color: #333;
    margin-bottom: 20px;
}

/* Form styles */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

form input[type="submit"], form button {
    background-color: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
}

form input[type="submit"]:hover, form button:hover {
    background-color: #004d99;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

table th, table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #0066cc;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #ddd;
}

/* Card for displaying info */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: #666;
}

/* Dashboard Summary Section */
.dashboard-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.dashboard-summary .card {
    flex: 1;
    margin-right: 20px;
}

.dashboard-summary .card:last-child {
    margin-right: 0;
}

/* Image preview section */
.image-preview {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 5px;
    margin-right: 10px;
}

.image-preview .remove-img {
    color: red;
    cursor: pointer;
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    background-color: #333;
    color: white;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding-top: 20px;
    padding-left: 10px;
}

.sidebar a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 5px;
}

.sidebar a:hover {
    background-color: #444;
}

/* Footer */
footer {
    background-color: #0066cc;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
}

.modal-content h3 {
    margin-bottom: 15px;
}

.modal-close {
    color: red;
    font-size: 18px;
    cursor: pointer;
    text-align: right;
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .dashboard-summary {
        flex-direction: column;
    }

    .sidebar {
        width: 200px;
    }

    .image-preview {
        flex-direction: column;
    }

    table th, table td {
        padding: 8px;
    }
}
nav ul { display: flex; list-style-type: none; padding: 0; margin: 0; justify-content: center; background-color: #0066cc; } nav ul li { margin: 0 10px; } nav ul li a { color: white; text-decoration: none; padding: 10px 20px; display: block; } nav ul li a:hover { background-color: #004d99; border-radius: 5px; }
