/* General styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body, html {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    text-align: center;
    position: fixed;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger icon styling */
.hamburger {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    cursor: pointer;
}

.container {
    display: flex;
    height: calc(100vh - 70px);
    margin-top: 70px;
}

.sidebar {
    width: 200px;
    background-color: #333;
    color: white;
    position: fixed;
    top: 70px;
    bottom: 0;
    padding-top: 1rem;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    margin: 0;
}

.sidebar li a {
    display: block;
    color: white;
    padding: 1rem;
    text-decoration: none;
}

.sidebar li a:hover {
    background-color: #4CAF50;
}

/* Content styling */
.content {
    margin-left: 200px;
    padding: 1rem;
    width: calc(100% - 200px);
    overflow-y: auto;
}

/* Hide sidebar on mobile and show hamburger icon */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show on mobile */
    }

    .sidebar {
        width: 200px;
        transform: translateX(-100%); /* Hide sidebar by shifting it off-screen */
        position: fixed;
        z-index: 1;
    }

    /* When sidebar is active */
    .sidebar.active {
        transform: translateX(0); /* Show sidebar when active */
    }

    .content {
        margin-left: 0;
        width: 100%;
    }
}

/* Container for the form */
.form-container {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Form heading */
.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Grid layout for form fields */
#registrationForm {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    gap: 1rem; /* Space between items */
}

/* Full-width fields like textareas and buttons */
#registrationForm textarea,
#registrationForm button {
    grid-column: span 2;
}

/* Label styling */
#registrationForm label {
    font-weight: bold;
    color: #333;
}

/* Input and select styling */
#registrationForm input[type="text"],
#registrationForm input[type="number"],
#registrationForm input[type="tel"],
#registrationForm select,
#registrationForm textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

/* Button styling */
#registrationForm button {
    padding: 0.75rem;
    font-size: 1.1rem;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

#registrationForm button:hover {
    background-color: #45a049;
}

/* Responsive design: Stack columns on smaller screens */
@media (max-width: 768px) {
    #registrationForm {
        grid-template-columns: 1fr; /* Stack into a single column */
    }
}
.form-container {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

#addItemForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#addItemForm textarea,
#addItemForm button {
    grid-column: span 2;
}

#addItemForm label {
    font-weight: bold;
    color: #333;
}

#addItemForm input[type="text"],
#addItemForm input[type="number"],
#addItemForm input[type="date"],
#addItemForm select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

#addItemForm button {
    padding: 0.75rem;
    font-size: 1.1rem;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

#addItemForm button:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    #addItemForm {
        grid-template-columns: 1fr;
    }
}
.table-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table-container h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #4CAF50;
    color: white;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: center;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #ddd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    th, td {
        padding: 0.5rem;
    }
    .table-container {
        padding: 0.5rem;
    }
}
.icon-btn {
    display: inline-block;
    font-size: 1.25rem;
    color: #333;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.icon-btn:hover {
    color: #4CAF50; /* Color on hover */
}

/* Additional styling for specific icons if needed */
.icon-btn .fa-edit {
    color: #4CAF50; /* Edit icon color */
}

.icon-btn .fa-trash-alt {
    color: #e74c3c; /* Delete icon color */
}
.icon-btn {
    display: inline-block;
    font-size: 1.25rem;
    color: #333;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.icon-btn:hover {
    color: #4CAF50; /* Change color on hover */
}

.icon-btn .fa-edit {
    color: #4CAF50; /* Edit icon color */
}

.icon-btn .fa-trash-alt {
    color: #e74c3c; /* Delete icon color */
}

/* Style for the table */
.table-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #4CAF50;
    color: white;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: center;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #ddd;
}
/* General Container Styling */
.form-container, .table-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-container h2, .table-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-top: 1rem;
}

input[type="text"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
}

button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

/* Message Styling */
#slotMessage {
    font-weight: bold;
    margin-top: 0.5rem;
    display: block;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

thead {
    background-color: #4CAF50;
    color: white;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: center;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #ddd;
}

/* Action Icon Styling */
.icon-btn {
    font-size: 1.25rem;
    color: #333;
    margin: 0 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icon-btn .fa-edit {
    color: #4CAF50;
}

.icon-btn .fa-trash-alt {
    color: #e74c3c;
}

.icon-btn:hover .fa-edit {
    color: #2e7d32;
}

.icon-btn:hover .fa-trash-alt {
    color: #c62828;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-container, .table-container {
        padding: 1rem;
    }

    label {
        margin-top: 0.75rem;
    }

    button[type="submit"] {
        font-size: 1rem;
    }
}
/* Styling the action icons in the table */
.table-container .actions a {
    margin: 0 8px;
    text-decoration: none;
    color: #555; /* Default color */
    font-size: 18px; /* Icon size */
}

.table-container .actions a:hover {
    color: #007bff; /* Hover color */
}

.table-container .actions a .fa-edit {
    color: #28a745; /* Green color for edit */
}

.table-container .actions a .fa-trash-alt {
    color: #dc3545; /* Red color for delete */
}

.table-container .actions a .fa-print {
    color: #6c757d; /* Gray color for print */
}

.table-container .actions a:hover .fa-edit {
    color: #218838; /* Darker green on hover for edit */
}

.table-container .actions a:hover .fa-trash-alt {
    color: #c82333; /* Darker red on hover for delete */
}

.table-container .actions a:hover .fa-print {
    color: #5a6268; /* Darker gray on hover for print */
}
.dashboard-container {
    padding: 20px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.card p {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}
.login-container, .form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-container h2, .form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container input, .form-container input, .form-container select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button, .form-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
