/* Matrix MTA Upload Center Styles */
:root {
    --primary-color: #00d4aa;
    --secondary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

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

@font-face {
    font-family: 'IRANSans';
    src: url('IRANSans.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

/* Background overlay with Matrix MTA image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 212, 170, 0.3));
}

.login-header h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.login-footer a:hover {
    color: var(--secondary-color);
}

/* Main Layout */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-logo {
    width: 40px;
    height: 40px;
    margin-left: 10px;
}

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

/* Upload Container */
.upload-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.upload-header {
    text-align: center;
    margin-bottom: 40px;
}

.upload-header h2 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.upload-header h2 i {
    color: var(--primary-color);
    margin-left: 10px;
}

/* Form Styles */
.form-label {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: block;
}

.form-label i {
    color: var(--primary-color);
    margin-left: 8px;
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.25);
}

.form-control:read-only {
    background-color: #f8f9fa;
    opacity: 0.8;
}

/* File Input Styles */
.file-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.file-input-wrapper input[type="file"] {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 3px dashed #dee2e6;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    flex-direction: column;
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 170, 0.05);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-text span {
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.upload-text small {
    color: #6c757d;
    font-size: 14px;
}

/* Selected Files */
.selected-files {
    margin: 20px 0;
}

.selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.file-name i {
    margin-left: 8px;
    color: var(--primary-color);
}

.file-size {
    font-size: 14px;
    color: #6c757d;
}

.remove-file {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-file:hover {
    background: #c82333;
}

/* Progress Styles */
.upload-progress {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #dee2e6;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-info span {
    font-weight: 500;
    color: var(--dark-color);
}

.progress {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.upload-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.upload-stats small {
    color: #6c757d;
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

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

.btn-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result Containers */
.result-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.error-icon {
    font-size: 80px;
    color: var(--danger-color);
    margin-bottom: 20px;
}

.result-container h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.result-container p {
    color: #6c757d;
    margin-bottom: 30px;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* File List */
.file-list {
    text-align: right;
    margin: 30px 0;
}

.file-item {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.file-item h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.file-item h4 i {
    color: var(--primary-color);
    margin-left: 8px;
}

.file-url {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    align-items: center;
}

.file-url input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}

.copy-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.copy-btn:hover {
    background: #0056b3;
}

.expiry-info {
    background: rgba(255, 152, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    border: 1px dashed #ff9800;
    color: #ff9800;
    font-size: 14px;
    margin-top: 10px;
}

.expiry-info i {
    margin-left: 5px;
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    color: #007bff;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

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

/* Toast Notifications */
.toast {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.toast-header {
    border-bottom: 1px solid #dee2e6;
}

.toast-body {
    padding: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .upload-container {
        padding: 20px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .file-url {
        flex-direction: column;
        gap: 5px;
    }
    
    .file-url input {
        width: 100%;
    }
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.w-100 {
    width: 100% !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.position-fixed {
    position: fixed !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.end-0 {
    left: 0 !important;
}

.p-3 {
    padding: 1rem !important;
}
