/* Hebrew RTL Event Registration System Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-form, .error, .success, .success-message {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
}

h1 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
}

h2 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 24px;
    text-align: center;
}

p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

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

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
    direction: rtl;
}

select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-register, .btn-decline {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

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

.btn-register:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-decline {
    background: #dc3545;
    color: white;
}

.btn-decline:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.error {
    border-left: 5px solid #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.success, .success-message {
    border-left: 5px solid #28a745;
    background: #d4edda;
    color: #155724;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
    }
    
    .container {
        padding: 10px;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 20px;
    }
    
    .registration-form, .error, .success, .success-message {
        padding: 25px 20px;
        margin: 5px;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    select {
        padding: 15px 12px;
        font-size: 16px;
        border-radius: 6px;
        /* Prevent zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: left 12px center;
        background-size: 20px;
        padding-left: 45px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }
    
    .btn-register, .btn-decline {
        width: 100%;
        padding: 18px 20px;
        font-size: 18px;
        border-radius: 8px;
        margin-bottom: 0;
        min-width: auto;
        /* Better touch targets */
        min-height: 50px;
    }
    
    .btn-register:hover, .btn-decline:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Better touch feedback */
    .btn-register:active {
        background: #1e7e34;
        transform: scale(0.98);
    }
    
    .btn-decline:active {
        background: #bd2130;
        transform: scale(0.98);
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .registration-form, .error, .success, .success-message {
        padding: 20px 15px;
        margin: 2px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .btn-register, .btn-decline {
        padding: 16px 15px;
        font-size: 16px;
    }
}

/* Admin panel specific styles */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
.loading {
    text-align: center;
    padding: 20px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}