/* Basic Styling - This is VERY basic, you'll want to expand on this */
body {
    direction: rtl;
    font-family: sans-serif;
    margin: 0;
    background-color: #f0f0f0; /* Light gray background */
}

.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-panel {
    display: flex;
    flex-direction: column; /* Stack header and main */
    min-height: 100vh; /* Make sure it takes up the full height */
}

header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex; /* Align header and navigation horizontally */
    justify-content: space-between; /* Push elements to opposite sides */
    align-items: center; /* Vertically center items */
}

header h1 {
    margin: 0;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Horizontal navigation */
}

header nav li {
    margin-left: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
    flex-grow: 1; /* Allow main to grow and take up remaining space */
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in width */
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #3e8e41;
}

.error-message {
    color: red;
    margin-top: 10px;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Dashboard Summary */
.dashboard-summary {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.summary-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 200px; /* Adjust width as needed */
}

.summary-item h3 {
    margin-bottom: 10px;
}