* {
    box-sizing: border-box;
}
body {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    background: #f0f4f8;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 1400px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
h1 {
    text-align: center;
    color: #2c3e66;
    margin-bottom: 20px;
}
.message {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}
.message.error {
    background: #ffebee;
    color: #c62828;
}
.nav-buttons, .header-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}
.header-buttons {
    justify-content: space-between;
    align-items: center;
}
.btn {
    background: #2c3e66;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    display: inline-block;
}
.btn.disabled, .btn:disabled {
    background: #aaa;
    pointer-events: none;
}
.btn:hover:not(.disabled) {
    background: #1e2b46;
}
.btn-save {
    background: #2e7d32;
}
.btn-save:hover {
    background: #1b5e20;
}
.btn-delete {
    background: #c62828;
}
.btn-delete:hover {
    background: #8e0000;
}
fieldset {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}
legend {
    font-weight: bold;
    padding: 0 10px;
    color: #2c3e66;
}
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.form-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
input, select, textarea {
    padding: 8px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 0.9rem;
}
input:focus, select:focus, textarea:focus {
    border-color: #2c3e66;
    outline: none;
}
input:disabled, select:disabled, textarea:disabled {
    background: #f5f5f5;
    color: #555;
}
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}
/* أنماط تسجيل الدخول */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2c3e66, #1a2a44);
}
.login-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 350px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.login-container h2 {
    color: #2c3e66;
    margin-bottom: 20px;
}
.demo-info {
    margin-top: 15px;
    font-size: 12px;
    color: #777;
}
/* جدول المستخدمين */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: right;
}
.data-table th {
    background: #2c3e66;
    color: white;
}
@media print {
    .nav-buttons, .action-buttons, .btn, .message, .header-buttons {
        display: none;
    }
    body {
        background: white;
        padding: 0;
    }
    .container {
        box-shadow: none;
        padding: 0;
    }
}
/* أنماط الواجهة الرئيسية (dashboard) */
.dashboard-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.dashboard-header h1 {
    margin: 0;
    color: #2c3e66;
}
.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}
.dashboard-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 40px 0;
}
.dashboard-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 16px;
    padding: 20px 30px;
    text-decoration: none;
    color: #2c3e66;
    text-align: center;
    transition: 0.3s;
    width: 200px;
}
.dashboard-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: #e9ecef;
}
.btn-icon {
    font-size: 48px;
    margin-bottom: 10px;
}
.btn-text {
    font-size: 18px;
    font-weight: bold;
}
.btn-text small {
    font-size: 12px;
    font-weight: normal;
    color: #6c757d;
}
.dashboard-footer {
    margin-top: 40px;
    color: #6c757d;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* أنماط الجدول والبحث */
.search-box {
    margin: 20px 0;
    text-align: center;
}
.search-input {
    width: 300px;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid #ccc;
    font-size: 16px;
}
.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}
.data-table th {
    background: #2c3e66;
    color: white;
}
.data-table tr:nth-child(even) {
    background: #f2f2f2;
}
.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    margin: 2px;
}
.actions {
    white-space: nowrap;
}
@media print {
    .header-buttons, .search-box, .actions form, .btn, .actions a {
        display: none;
    }
    .data-table th, .data-table td {
        border: 1px solid #000;
    }
}