body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 15px;
    overflow: hidden;
}

.company-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.company-logo {
    max-height: 80px;
    width: auto;
}

.card-header {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%) !important;
    border-bottom: 3px solid #e0a800;
}

.card-header h1 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.form-select, .form-control {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.form-select-lg {
    padding: 0.75rem 1rem;
}

.badge {
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.risk-option .form-check-input {
    display: none;
}

.risk-option .form-check-label {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.risk-option .form-check-input:checked + .form-check-label {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.risk-option .form-check-label:hover {
    opacity: 1;
    transform: scale(1.05);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    border: none;
    color: #212529;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 10px;
}

.alert-danger a {
    color: white !important;
    text-decoration: none;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 10px;
}

.form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.card-footer {
    border-top: 1px solid #e9ecef;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .text-left {
    text-align: right;
}

body.rtl .text-right {
    text-align: left;
}

body.rtl .me-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

body.rtl .me-3 {
    margin-right: 0.75rem !important;
    margin-left: 0 !important;
}

body.rtl .ms-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.language-selector {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.language-selector p {
    margin: 0 0 0.75rem 0;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.language-buttons {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.language-selector a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.language-selector a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.language-selector a:hover::before {
    width: 300px;
    height: 300px;
}

.language-selector a:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 193, 7, 0.15) 100%);
    border-color: rgba(255, 193, 7, 0.8);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #fff;
}

.language-selector a.active {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #1a1a2e;
    border-color: #ffd700;
    font-weight: 800;
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.6), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    transform: scale(1.08);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.language-selector a.active::after {
    content: '✓';
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.9;
}

@media (max-width: 576px) {
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .risk-option .form-check-label {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .container {
        padding: 1rem;
    }
    
    .language-selector {
        padding: 0.75rem;
    }
    
    .language-selector p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .language-buttons {
        gap: 0.5rem;
    }
    
    .language-selector a {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
    }
}

.form-label {
    color: #333;
    margin-bottom: 0.75rem;
}

.form-text {
    font-size: 0.85rem;
}

input[type="file"].form-control {
    padding: 0.5rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}
