/* Import the Cairo font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* General Body Styles */
body {
    font-family: 'Cairo', sans-serif;
    /* Use Cairo as the primary font */
    background-color: #eef1f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Main Container for Forms and Content */
.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1 {
    color: #1e3a5f;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
    text-align: right;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
/* <--- أضفنا textarea هنا */
select {
    /* <--- أضفنا select هنا */
    width: 100%;
    /* <--- جعل العرض 100% */
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}
button {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

button:hover {
    transform: scale(1.02);
}

/* Alert and Message Boxes */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Links */
.form-link {
    margin-top: 20px;
    font-size: 14px;
}

.form-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
/* --- ADD OR UPDATE THESE STYLES --- */

/* This will manage the header layout */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    /* Helps on small screens */
    gap: 15px;
}

/* This will manage the spacing between the buttons */
.header-actions {
    display: flex;
    gap: 10px;
}

/* Add this new style for the logout button */
.btn-link.logout {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-link.logout:hover {
    background-color: #f1b0b7;
}

/* Ensure the .login class from index.php is also available */
.btn-link.login {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #ced4da;
}

.btn-link.login:hover {
    background-color: #dee2e6;
}