/* Loading Indicator */
.loading-indicator {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.loading-indicator p {
    margin: 0;
    color: var(--primary-color);
    font-weight: 500;
}

/* استایل اصلی سیستم آپلود فایل */

:root {
    --primary-color: #0066ff;
    --primary-hover: #005ce6;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #040d21;
    --background-color: #040d21;
    --text-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-background: rgba(13, 25, 45, 0.95);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #0d192d 0%, #040d21 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* هدر */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(13, 25, 45, 0.5);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 40px;
    filter: brightness(1.2);
    transition: transform 0.3s;
}

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

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.nav a:hover {
    background: rgba(0, 102, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.nav i {
    margin-left: 8px;
}

/* بخش آپلود */
.upload-section {
    background: linear-gradient(180deg, rgba(13, 25, 45, 0.95) 0%, rgba(4, 13, 33, 0.95) 100%);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(10px);
}

.upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.upload-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

#drop-area:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
}

#drop-area.active {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.1);
}

.upload-icon i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 102, 255, 0.3));
}

#file-name {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.upload-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin: 20px 0;
    font-size: 14px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* بخش دانلود */
.download-section {
    background: linear-gradient(180deg, rgba(13, 25, 45, 0.95) 0%, rgba(4, 13, 33, 0.95) 100%);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
    border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(10px);
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00c6ff, var(--primary-color));
}

.download-link-container {
    display: flex;
    margin: 20px 0;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.download-link-container input {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(4, 13, 33, 0.9);
    color: var(--text-color);
    font-size: 14px;
    direction: ltr;
}

.copy-btn {
    background: linear-gradient(45deg, var(--primary-color), #1a75ff);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.copy-btn:hover {
    background: linear-gradient(45deg, #005ce6, #0066ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #1a75ff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #005ce6, #0066ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* فوتر */
.footer {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(13, 25, 45, 0.95) 0%, rgba(4, 13, 33, 0.95) 100%);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.footer-sections {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 0 1 300px;
}

.footer-section h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color));
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* آیکون‌های اجتماعی */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.social-links i {
    font-size: 18px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* پیام‌های سیستم */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.message-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #2ecc71;
}

.message-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #e74c3c;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-section, .download-section {
    animation: fadeIn 0.5s ease-out;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-sections {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        right: 50%;
        transform: translateX(50%);
    }
} 