/* التنسيقات العامة */
:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --dark-color: #5a5c69;
    --light-color: #f8f9fc;
    --text-color: #333;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* صفحة التسجيل/الدخول */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.forms-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    display: flex;
}

.forms-wrapper {
    width: 100%;
    position: relative;
}

.form {
    padding: 40px;
    width: 100%;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
}

.form.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.form h2 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.25);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-forgot label input {
    margin-left: 5px;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #3a5bd9;
}

.toggle-form {
    text-align: center;
    margin-top: 20px;
}

.toggle-link {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
}

.toggle-link:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

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

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

/* لوحة التحكم */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.user-info {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.avatar {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    transition: all 0.3s;
}

.sidebar-nav li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sidebar-nav li.active a {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-nav li a i {
    margin-left: 10px;
}

.main-content {
    flex: 1;
    background-color: var(--light-color);
}

.header {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    display: flex;
}

.search-bar input {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-bar button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.content {
    padding: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    margin-left: 15px;
}

.bg-blue {
    background-color: var(--primary-color);
}

.bg-green {
    background-color: var(--secondary-color);
}

.bg-orange {
    background-color: var(--warning-color);
}

.bg-red {
    background-color: var(--danger-color);
}

.card-info h3 {
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.card-info p {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.recent-activity {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.recent-activity h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status.success {
    background-color: #d4edda;
    color: #155724;
}

.status.failed {
    background-color: #f8d7da;
    color: #721c24;
}





/* إدارة المستخدمين */
.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th, .users-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.users-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.status.info {
    background-color: #17a2b8;
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 5px;
}

.btn-green {
    background-color: #28a745;
}

.btn-red {
    background-color: #dc3545;
}

.btn-blue {
    background-color: #007bff;
}

.btn-orange {
    background-color: #fd7e14;
}

.actions {
    white-space: nowrap;
}











/* التجاوب */
@media (max-width: 768px) {
    .forms-container {
        flex-direction: column;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
}