/* public/css/1.css */

/* Global Base */
body {
    font-family: sans-serif;
    margin: 40px;
    color: #333;
    background-color: #f7f7f7;
}

em { text-decoration:underline; }

h1 { color: #333; }
h2 { color: #555; }
h5 { color: #5555559e; }

/* Navigation Bar */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}
.nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}
.nav a:hover {
    text-decoration: underline;
}
.nav a.logout {
    color: #d8000c;
    font-weight: bold;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Messages & Alerts */
.success-message {
    color: green;
    font-weight: bold;
    padding: 10px;
    border: 1px solid green;
    background-color: #e8f5e9;
    margin-bottom: 20px;
    display: inline-block;
    border-radius: 4px;
}
.error {
    color: #d8000c;
    background-color: #ffbaba;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #d8000c;
}

/* Buttons & Links */
.btn, button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
.btn:hover, button:hover {
    background-color: #0056b3;
}

/* Forms */
form {
    max-width: 400px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 18px;
}
input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    margin-bottom: 15px;
}

/* --- Filter & Sorting Bar --- */
.filter-bar {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}
.filter-bar .form-group {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-bar select {
    width: auto;
    margin-bottom: 0;
    padding: 8px;
}
.filter-bar button, .filter-bar .btn {
    padding: 8px 15px;
    margin: 0;
}

/* --- Specific Layout for Login Page --- */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f4f7f6;
}
.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 350px;
}
.login-box h1 {
    text-align: center;
    margin-top: 0;
}
.login-box button {
    width: 100%;
    font-weight: bold;
}
.login-box form {
    max-width: 100%;
}
.login-box h5 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 0;
}

/* --- Summary Card --- */
.summary-card {
    background-color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #007bff;
}
.summary-card h3 {
    margin: 0;
    color: #333;
}
.summary-card .total {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}