:root {
    --primary-black: #000000;
    --primary-yellow: #FFD700;
    --secondary-yellow: #FFED4E;
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
    --danger-red: #DC3545;
    --success-green: #28A745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-black);
    color: var(--text-white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* الهيدر */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-bottom: 3px solid var(--primary-yellow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-yellow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* الهيرو سيكشن */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                var(--hero-image) center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
}

.btn-secondary:hover {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

/* الفوتر */
.footer {
    background-color: #1a1a1a;
    border-top: 2px solid var(--primary-yellow);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

/* الكروت */
.card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
}

/* الجداول */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
    font-weight: bold;
}

tr:hover {
    background-color: #2a2a2a;
}

/* النماذج */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--text-white);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

/* التنبيهات */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.alert-success {
    background-color: var(--success-green);
    color: white;
}

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

.alert-warning {
    background-color: var(--primary-yellow);
    color: var(--primary-black);
}

/* الوسائط المتجاوبة */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
}