/* فونت‌ها و تنظیمات پایه */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.woff2') format('woff2'),
         url('fonts/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

:root {
    --primary-color: #4a148c;
    --secondary-color: #7b1fa2;
    --accent-color: #e91e63;
    --text-color: #f5f5f5;
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --error-color: #f44336;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(74, 20, 140, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(123, 31, 162, 0.15) 0%, transparent 30%),
        linear-gradient(to bottom, var(--bg-color), var(--bg-color));
}

/* کانتینر اصلی */
.container {
    width: 100%;
    max-width: 500px;
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 45%,
        rgba(233, 30, 99, 0.1) 50%,
        transparent 55%
    );
    animation: rotateBG 20s linear infinite;
    z-index: -1;
}

@keyframes rotateBG {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* لوگو */
.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(233, 30, 99, 0.5));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* تایپوگرافی */
h1, h2, h3 {
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: normal;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    background: linear-gradient(to right, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* فرم‌ها */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

input[type="text"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 15px 20px;
    background-color: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-family: 'Vazir', Tahoma, sans-serif;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.3);
    background-color: rgba(50, 50, 50, 0.7);
}

/* دکمه‌ها */
button, .btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.3);
    position: relative;
    overflow: hidden;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.4);
}

button:active, .btn:active {
    transform: translateY(0);
}

button::after, .btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 45%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 55%
    );
    transform: rotate(30deg);
    transition: var(--transition);
}

button:hover::after, .btn:hover::after {
    left: 100%;
}

/* رادیو باتن‌ها */
.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: block;
    padding: 15px;
    background-color: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.radio-option input:checked ~ .radio-label {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.3);
}

/* اعلان‌ها */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #a5d6a7;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ef9a9a;
}

.alert-warning {
    background-color: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #ffcc80;
}

/* آپلود عکس */
.file-upload-container {
    margin-bottom: 25px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: rgba(40, 40, 40, 0.7);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.file-upload-label:hover {
    border-color: var(--accent-color);
    background-color: rgba(50, 50, 50, 0.7);
}

.file-upload-label i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.file-upload-label .upload-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.file-upload-label .upload-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.file-preview {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius);
    object-fit: cover;
    margin-top: 15px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* صفحه پروفایل */
.profile-container {
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
}

.profile-photo {
    text-align: center;
    margin-bottom: 25px;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

.profile-details {
    margin-top: 20px;
}

.profile-details p {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.profile-details p strong {
    color: var(--accent-color);
    font-weight: normal;
}

/* نظر سنجی */
.survey-section {
    margin-top: 30px;
}

.survey-button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.survey-form {
    display: none;
    margin-top: 20px;
    animation: fadeIn 0.3s ease-out;
}

.survey-comment {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background-color: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: 'Vazir', Tahoma, sans-serif;
    margin-bottom: 15px;
    resize: vertical;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        border-radius: 0;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .profile-photo img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .logo img {
        max-width: 120px;
    }
    
    input, button, .radio-label {
        padding: 12px;
    }
}

/* استایل بخش نظر سنجی */
.survey-section {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 12px;
}

.btn-survey {
    background: linear-gradient(to right, #4a148c, #7b1fa2);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-survey:hover {
    background: linear-gradient(to right, #7b1fa2, #9c27b0);
    transform: translateY(-2px);
}

#surveyForm {
    margin-top: 15px;
    animation: fadeIn 0.3s ease-out;
}

#surveyComment {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(30, 30, 30, 0.8);
    color: white;
    font-family: 'Vazir', Tahoma, sans-serif;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(to right, #e91e63, #c2185b);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Vazir', Tahoma, sans-serif;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(to right, #c2185b, #ad1457);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.photo-preview-container {
    margin-top: 10px;
    text-align: center;
}

.photo-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px dashed #ccc;
    margin-bottom: 5px;
}

.photo-info {
    font-size: 0.8rem;
    color: #aaa;
    margin: 5px 0;
}

.remove-photo-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-photo-btn:hover {
    background: #d32f2f;
}

/* استایل پیام دریافت خودکار کد */
.otp-message {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

.otp-message i {
    margin-left: 5px;
    color: #4361ee;
}

/* استایل فیلد کد تأیید */
#verificationCode {
    letter-spacing: 5px;
    font-size: 1.5rem;
    text-align: center;
    padding: 10px;
}

.otp-message {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    margin-top: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.otp-message i {
    margin-left: 5px;
}

.fa-check-circle {
    color: #28a745;
}

.fa-info-circle {
    color: #17a2b8;
}

.fa-mobile-alt {
    color: #6f42c1;
}

#verificationCode:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* استایل‌های جدید برای بخش درخواست مجوز */
.permission-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.permission-box p {
    margin-bottom: 15px;
    color: #495057;
}

.permission-btn {
    background-color: #4361ee;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.permission-btn i {
    font-size: 18px;
}

.resend-code {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

#resendLink {
    color: #4361ee;
    text-decoration: none;
}

#resendLink:hover {
    text-decoration: underline;
}

#countdownText {
    color: #666;
    margin-top: 5px;
}

#countdown {
    font-weight: bold;
    color: #f72585;
}

/* استایل‌های جدید برای دکمه‌ها و فرم ویرایش */
.action-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.btn-edit, .btn-back {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: Vazir, sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-edit {
    background-color: #ffc107;
    color: #000;
}

.btn-back {
    background-color: #6c757d;
    color: #fff;
    text-decoration: none;
}

.btn-edit:hover {
    background-color: #e0a800;
}

.btn-back:hover {
    background-color: #5a6268;
}

.profile-details .form-group {
    margin-bottom: 15px;
}

.profile-details label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.profile-details input,
.profile-details select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Vazir, sans-serif;
}