:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --text-color: #2b2d42;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
}

.arabic-text {
    font-family: 'Cairo', sans-serif;
}

/* Glassmorphism */
.glass-effect {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: var(--glass-border);
    box-shadow: var(--shadow);
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.registration-card {
    padding: 40px;
}

.card-header h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
    font-weight: 300;
}

/* Forms */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"], input[type="date"], select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.2);
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 15px 40px;
}

/* Verification Specific */
.verify-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bg-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.bg-red { background: linear-gradient(135deg, #cb2d3e 0%, #ef473a 100%); }

.verify-card {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
}

.status-inscrit { background: var(--success-color); }
.status-non-inscrit { background: var(--danger-color); }

/* Admin */
.admin-nav {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.alert {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.alert-success { background: var(--success-color); }
.alert-danger { background: var(--danger-color); }
