/* General Body & Font Styles */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* === Customer Login & Dashboard Styles === */

.login-container, .dashboard-container {
    width: 100%;
    max-width: 900px; /* Increased max-width for dashboard */
    padding: 2rem;
    box-sizing: border-box;
}

.login-box {
    max-width: 450px;
    margin: 4rem auto 0;
    background-color: white;
    padding: 2.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-box h1, .dashboard-container h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-form .input-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.login-box button {
    width: 100%;
    padding: 0.9rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.login-box button:hover {
    background-color: #0056b3;
}

.error {
    color: #d93025;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.error-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}
.error-box h2 {
    margin-top: 0;
    color: #856404;
}

/* === Shared & Admin Styles === */
.container, .admin-container {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px; /* Standard container width */
    box-sizing: border-box;
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.logout-btn {
    padding: 0.6rem 1.2rem;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.logout-btn:hover {
    background-color: #5a6268;
}

/* Admin Specifics */
.admin-section {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}
.admin-section h2 {
    margin-top: 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
}
.table-wrapper {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}
th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}
thead th {
    background-color: #f7f7f7;
    font-weight: 600;
}
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.info {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 1rem;
    background-color: #e9ecef;
    padding: 0.75rem;
    border-radius: 4px;
}
.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.filter-form input[type="date"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="text"], input[type="password"], input[type="file"] {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.admin-section button {
    padding: 0.9rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}
.admin-section button:hover {
    background-color: #0056b3;
}
/* Styling for the new help text on the login page */
.help-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1.5rem;
    line-height: 1.5;
}