:root {
    --primary-bg: rgba(51, 51, 51, 0.9);
    --secondary-bg: rgba(255, 255, 255, 0.9);
    --accent-color: #28a745;
    --accent-hover: #218838;
    --error-color: red;
    --text-light: white;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    background: url('../images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    color: #333;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(200px, 250px) 1fr;
    height: 100vh;
}

.sidebar {
    background: var(--primary-bg);
    color: var(--text-light);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-layout .logout {
    margin-top: auto;
    width: 100%;
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--primary-bg);
    color: var(--text-light);
    text-align: center;
    padding: 15px;
    font-size: 20px;
    box-shadow: 0 4px 10px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menu li {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.menu li:hover, .menu li:focus {
    background: var(--border-color);
}

.logout {
    color: var(--text-light);
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    padding: 12px;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(255, 77, 77, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    box-shadow: 0 6px 12px rgba(255, 77, 77, 0.3);
    transform: translateY(-2px);
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
}

.form-container {
    background: var(--secondary-bg);
    padding: 20px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 10px var(--shadow-color);
    border-radius: 8px;
    margin: 20px;
}

.form-container h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.form-container input,
.form-container select {
    max-width: 100%;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.form-container select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    resize: vertical; /* Allow vertical resizing but not horizontal */
    min-height: 50px; /* Ensures a consistent initial height */
}

.form-container button {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.form-container button:hover {
    background: var(--accent-hover);
}

.form .required:after {
    content: "*";
    color: var(--error-color);
}

.centered-container {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    min-height: calc(100vh - 60px);
}

.error {
    color: var(--error-color);
    font-size: 0.9rem;
    display: none;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        width: 100%;
        position: fixed;
        height: auto;
        top: 0;
        left: 0;
        z-index: 1000;
    }
    .navbar {
        padding: 10px;
    }
    .form-container {
        width: 90%;
    }
}
