/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1414 50%, #3d1a1a 100%);
    min-height: 100vh;
    color: #f1f1f1;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(45, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff4757;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #e1e1e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff4757;
}

/* Main Content */
.main-content {
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
}

.alert {
    background: #d4edda;
    color: #155724;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: 1rem;
}

/* Upload Container */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.upload-header {
    margin-bottom: 3rem;
}

.upload-title {
    font-size: 2.5rem;
    color: #ff4757;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.upload-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Upload Area */
.upload-area {
    background: rgba(26, 26, 46, 0.8);
    border: 3px dashed #444;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #ff4757;
    background: rgba(26, 26, 46, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 4rem;
    color: #ff4757;
    margin-bottom: 1rem;
}

.upload-content h3 {
    font-size: 1.5rem;
    color: #e1e1e1;
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: #b8b8b8;
    font-size: 1.1rem;
}

.browse-text {
    color: #ff4757;
    font-weight: bold;
    text-decoration: underline;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Progress Bar */
.upload-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(15, 15, 35, 0.8);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #e55039);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    color: #b8b8b8;
    font-size: 1.1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header h3 {
    color: #e1e1e1;
    margin: 0;
    font-size: 1.2rem;
}

.progress-header span {
    color: #ff4757;
    font-weight: 600;
}

.progress-bar {
    position: relative;
    margin-bottom: 1rem;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    z-index: 1;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #b8b8b8;
    font-size: 0.9rem;
}

.progress-size {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.progress-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.progress-eta {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-eta span {
    color: #ff4757;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Selected Files Section */
.selected-files {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-files h3 {
    color: #e1e1e1;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.files-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-height: 300px;
    overflow-y: auto;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 15, 35, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    background: rgba(15, 15, 35, 0.8);
    transform: translateX(5px);
}

.file-preview-icon {
    font-size: 2rem;
    color: #ff4757;
    min-width: 50px;
    text-align: center;
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    color: #e1e1e1;
    font-weight: 600;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-preview-size {
    color: #b8b8b8;
    font-size: 0.9rem;
}

.file-remove-btn {
    background: rgba(255, 107, 107, 0.2);
    border: none;
    color: #ff6b6b;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.upload-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    min-width: 200px;
}

/* Enhanced Progress Bar */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-header h3 {
    color: #e1e1e1;
    margin: 0;
    font-size: 1.2rem;
}

#uploadSpeed {
    color: #ff4757;
    font-weight: 600;
    font-size: 1rem;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 25px;
    background: rgba(15, 15, 35, 0.8);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #e55039);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
    position: relative;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #b8b8b8;
    font-size: 0.95rem;
}

.progress-size {
    display: flex;
    gap: 0.5rem;
}

#uploadedSize {
    color: #ff4757;
    font-weight: 600;
}

#totalSize {
    color: #e1e1e1;
}

.progress-time {
    color: #b8b8b8;
}

#timeRemaining {
    color: #ff4757;
    font-weight: 600;
}

/* Upload Options */
.upload-options {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    display: block;
    font-weight: 600;
    color: #e1e1e1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(15, 15, 35, 0.8);
    color: #e1e1e1;
}

.password-input:focus {
    outline: none;
    border-color: #ff4757;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4757, #e55039);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-download {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

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

/* Modal Styles */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.modal.show {
    display: flex !important;
}

.success-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 999999 !important;
}

.success-modal.show {
    display: flex !important;
}

#successModal {
    display: none !important;
}

#errorModal {
    display: none !important;
}

#blacklistModal {
    display: none !important;
}

#passwordModal {
    display: none !important;
}

#downloadHistoryModal {
    display: none !important;
}

#deleteModal {
    display: none !important;
}

/* Download History Modal Styles */
.download-history-modal {
    max-width: 800px !important;
    width: 95% !important;
    max-height: 90vh !important;
}

.download-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.download-info h3 {
    color: #e1e1e1;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.download-stats {
    color: #ff4757;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.download-search {
    margin-bottom: 1.5rem;
}

.download-search .search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #444;
    border-radius: 8px;
    background: rgba(15, 15, 35, 0.8);
    color: #e1e1e1;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.download-search .search-input:focus {
    outline: none;
    border-color: #ff4757;
}

.download-list {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    background: rgba(15, 15, 35, 0.6);
    padding: 1rem;
}

.download-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.download-item:hover {
    background: rgba(26, 26, 46, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.download-item:last-child {
    margin-bottom: 0;
}

.download-ip,
.download-location,
.download-time,
.download-browser {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e1e1e1;
    font-size: 0.9rem;
}

.download-ip i {
    color: #ff4757;
    width: 16px;
}

.download-location i {
    color: #28a745;
    width: 16px;
}

.download-time i {
    color: #ffc107;
    width: 16px;
}

.download-browser i {
    color: #6f42c1;
    width: 16px;
}

.download-ip .ip {
    font-family: monospace;
    background: rgba(0, 212, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #ff4757;
}

.no-downloads {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.no-downloads i {
    font-size: 3rem;
    color: #555;
    margin-bottom: 1rem;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #ff4757;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download-history-btn {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
}

.download-history-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b) !important;
    transform: translateY(-2px);
}

.delete-btn {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4) !important;
}

/* Mobile responsive for download items */
@media (max-width: 768px) {
    .download-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .download-history-modal {
        width: 98% !important;
        margin: 1rem !important;
    }
    
         .download-list {
         max-height: 300px;
     }
 }

/* Delete Modal Styles */
.delete-modal {
    max-width: 500px !important;
    width: 90% !important;
}

.delete-warning {
    text-align: center;
    padding: 1rem 0;
}

.warning-icon {
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.delete-warning p {
    color: #e1e1e1;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.file-to-delete {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.file-to-delete i {
    color: #dc3545;
    font-size: 1.5rem;
}

.file-to-delete span {
    color: #e1e1e1;
    font-weight: 600;
    font-size: 1.1rem;
    word-break: break-all;
}

.warning-text {
    color: #ffc107 !important;
    font-size: 0.95rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
}

.warning-text i {
    color: #ffc107;
    font-size: 1.1rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.modal-content {
    background: rgba(26, 26, 46, 0.98) !important;
    border-radius: 20px !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(0, 212, 255, 0.3) !important;
    position: relative !important;
    margin: auto !important;
    animation: modalSlideIn 0.3s ease-out !important;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #e1e1e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.success-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(40, 167, 69, 0.1)) !important;
    border-bottom: 2px solid #ff4757 !important;
}

.success-header h2 {
    color: #ff4757 !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

.error-header {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(255, 69, 58, 0.1)) !important;
    border-bottom: 2px solid #dc3545 !important;
}

.error-header h2 {
    color: #dc3545 !important;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.3) !important;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

/* Link Container */
.link-container {
    margin-top: 1rem;
}

.link-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.link-input-group {
    display: flex;
    gap: 0.5rem;
}

.link-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.copy-btn {
    padding: 0.75rem 1rem;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #e55039;
}

/* File View Styles */
.file-view-container {
    max-width: 800px;
    margin: 0 auto;
}

.file-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.file-icon {
    font-size: 4rem;
    color: #ff4757;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 150, 200, 0.1));
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.file-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
    border-color: #ff4757;
}

.file-info h1 {
    color: #e1e1e1;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.file-meta {
    color: #b8b8b8;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-actions {
    text-align: center;
    margin: 2rem 0;
}

.file-details {
    margin-top: 2rem;
}

.file-details h3 {
    margin-bottom: 1rem;
    color: #e1e1e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-grid {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    font-weight: 600;
    color: #b8b8b8;
}

.detail-value {
    color: #e1e1e1;
    text-align: right;
}

/* Password Section */
.password-section {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 235, 59, 0.1);
    border-radius: 15px;
    border: 2px solid #ffc107;
}

.password-prompt {
    max-width: 400px;
    margin: 0 auto;
}

.password-prompt i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.password-prompt h3 {
    color: #333;
    margin-bottom: 1rem;
}

.password-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.password-input-group input {
    flex: 1;
}

/* Share Section */
.share-section {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.share-section h3 {
    margin-bottom: 1rem;
    color: #e1e1e1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.share-link-group {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.share-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(15, 15, 35, 0.8);
    color: #e1e1e1;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 3rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: #ff4757;
    margin-bottom: 1rem;
}

.login-header h1 {
    color: #e1e1e1;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #b8b8b8;
}

.login-form {
    text-align: left;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #e1e1e1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(15, 15, 35, 0.8);
    color: #e1e1e1;
}

.login-input:focus {
    outline: none;
    border-color: #ff4757;
}

.login-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h1 {
    color: #e1e1e1;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #ff4757, #e55039);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.stat-card i {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-info p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.dashboard-content {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: #e1e1e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box {
    position: relative;
    max-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(15, 15, 35, 0.8);
    color: #e1e1e1;
}

.search-box input:focus {
    outline: none;
    border-color: #ff4757;
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.file-item {
    background: rgba(15, 15, 35, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.file-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.file-item.blacklisted {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.file-preview {
    height: 150px;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.file-icon-large {
    font-size: 3rem;
    color: #ff4757;
}

.file-info {
    margin-bottom: 1rem;
}

.file-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e1e1e1;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.9rem;
    color: #b8b8b8;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-protected {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.badge-blacklisted {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn {
    background: #6c757d;
}

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

.view-btn {
    background: #17a2b8;
}

.view-btn:hover {
    background: #138496;
}

.password-btn {
    background: #ffc107;
}

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

.blacklist-btn {
    background: #dc3545;
}

.blacklist-btn:hover {
    background: #c82333;
}

.unblock-btn {
    background: #28a745;
}

.unblock-btn:hover {
    background: #218838;
}

.blacklist-reason {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    font-size: 0.9rem;
    color: #721c24;
}

.blacklist-reason i {
    margin-right: 0.5rem;
}

/* No Files */
.no-files {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-files i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.no-files h3 {
    margin-bottom: 0.5rem;
}

/* Error Styles */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    text-align: center;
}

.error-content {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-icon {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.error-title {
    color: #e1e1e1;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error-message {
    color: #b8b8b8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* Modal Input */
.modal-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.5rem;
    background: rgba(15, 15, 35, 0.8);
    color: #e1e1e1;
}

.modal-input:focus {
    outline: none;
    border-color: #ff4757;
}

/* Password Display */
.password-display {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.password-show {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(15, 15, 35, 0.8);
    font-family: monospace;
    color: #e1e1e1;
}

.btn-copy {
    padding: 0.75rem 1rem;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .upload-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .file-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .file-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-link-group {
        flex-direction: column;
    }

    .modal-content {
        width: 95% !important;
        margin: auto !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
    }

    .modal-footer {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .modal-footer .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .files-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .search-box {
        max-width: none;
        width: 100%;
    }

    .error-actions {
        flex-direction: column;
    }

    .detail-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-value {
        text-align: left;
    }
}

/* Animation Classes */
.animate__animated {
    animation-duration: 0.8s;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    max-width: 350px;
    border-left: 4px solid #28a745;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.2rem;
    color: #28a745;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 1004;
    pointer-events: none;
    white-space: nowrap;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.8);
}

::-webkit-scrollbar-thumb {
    background: #ff4757;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55039;
} 

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .upload-area {
        min-height: 200px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .files-preview {
        max-height: 200px;
    }

    .file-item {
        padding: 0.75rem;
    }

    .file-item .file-icon {
        font-size: 1.5rem;
    }

    .file-item .file-info h4 {
        font-size: 0.9rem;
    }

    .file-item .file-info p {
        font-size: 0.8rem;
    }

    .blacklist-form input,
    .blacklist-form textarea,
    .blacklist-form button {
        font-size: 0.9rem;
    }

    .search-container input {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Multi-File Progress Styles */
.multi-file-progress {
    margin-bottom: 1.5rem;
}

.file-progress-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.file-progress-item:last-child {
    margin-bottom: 0;
}

.file-progress-item.completed {
    background: rgba(0, 212, 255, 0.1);
    border-color: #ff4757;
}

.file-progress-item.uploading {
    background: rgba(0, 212, 255, 0.15);
    border-color: #ff4757;
    animation: progressGlow 2s ease-in-out infinite alternate;
}

.file-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.file-progress-name {
    font-weight: 600;
    color: #e1e1e1;
    font-size: 0.9rem;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-progress-status {
    font-size: 0.8rem;
    color: #b8b8b8;
}

.file-progress-status.completed {
    color: #ff4757;
}

.file-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.file-progress-fill {
    background: linear-gradient(90deg, #ff4757 0%, #e55039 100%);
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.file-progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #b8b8b8;
}

.overall-progress {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    padding: 1.25rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.progress-label {
    color: #ff4757;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    font-size: 1rem;
}

@keyframes progressGlow {
    0% { box-shadow: 0 0 5px rgba(0, 212, 255, 0.3); }
    100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}

/* Multi-Links Container Styles */
.multi-links-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.file-link-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.file-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff4757;
    transform: translateY(-2px);
}

.file-link-item:last-child {
    margin-bottom: 0;
}

.file-link-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.file-link-icon {
    font-size: 1.5rem;
    color: #ff4757;
    margin-right: 0.75rem;
}

.file-link-name {
    font-weight: 600;
    color: #e1e1e1;
    font-size: 1rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-link-url {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-link-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #e1e1e1;
    font-family: monospace;
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
}

.file-link-actions {
    display: flex;
    gap: 0.5rem;
}

.file-link-btn {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.file-link-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.file-link-btn.copied {
    background: rgba(40, 167, 69, 0.3);
    border-color: #28a745;
    color: #28a745;
}

/* Scrollbar styling for multi-links container */
.multi-links-container::-webkit-scrollbar {
    width: 6px;
}

.multi-links-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.multi-links-container::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

.multi-links-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
} 

/* Enhanced Search Controls */
.search-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box.ip-search {
    flex: 0.8;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e1e1e1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ff4757;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-box input::placeholder {
    color: #888;
}

/* Bulk Actions Section */
.bulk-actions-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.bulk-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.selection-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-count {
    color: #ff4757;
    font-weight: 500;
    font-size: 0.9rem;
}

.bulk-action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bulk-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: auto;
    transition: all 0.3s ease;
}

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

/* Custom Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    gap: 0.5rem;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(0, 212, 255, 0.1);
    border-color: #ff4757;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #ff4757;
    border-color: #ff4757;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:indeterminate ~ .checkmark {
    background-color: #ff4757;
    border-color: #ff4757;
}

.checkbox-container input:indeterminate ~ .checkmark:after {
    display: block;
    left: 3px;
    top: 7px;
    width: 8px;
    height: 2px;
    border: none;
    background-color: white;
    transform: none;
}

.select-all-text {
    color: #e1e1e1;
    font-weight: 500;
}

/* File Item Selection */
.file-item {
    position: relative;
}

.file-selection {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    padding: 0.25rem;
    backdrop-filter: blur(5px);
}

.file-item:hover .file-selection {
    background: rgba(0, 0, 0, 0.8);
}

/* Enhanced Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-header h2 {
    margin: 0;
    flex-shrink: 0;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .search-controls {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .bulk-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .selection-controls {
        justify-content: space-between;
    }
    
    .bulk-action-buttons {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .bulk-action-buttons {
        flex-direction: column;
    }
    
    .bulk-btn {
        width: 100%;
    }
} 

/* Maintenance Mode Styles */
.maintenance-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.maintenance-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.status-active {
    color: #27ae60;
}

.status-maintenance {
    color: #f39c12;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.maintenance-controls {
    display: flex;
    gap: 1rem;
}

.maintenance-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maintenance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Maintenance Modal Styles */
.maintenance-modal {
    max-width: 500px;
    width: 90%;
}

.maintenance-warning {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.maintenance-video {
    text-align: center;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.maintenance-video iframe {
    border-radius: 6px;
}

.maintenance-password-section {
    margin-top: 1.5rem;
}

.maintenance-password-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f39c12;
    font-size: 1.1rem;
}

.maintenance-password-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e1e1e1;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.maintenance-password-input:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
    outline: none;
}

.password-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Error shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-shake {
    animation: shake 0.5s ease-in-out;
}

/* Warning header style */
.warning-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.warning-header h2 {
    color: white;
}

/* Responsive maintenance section */
@media (max-width: 768px) {
    .maintenance-section {
        flex-direction: column;
        text-align: center;
    }
    
    .maintenance-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .maintenance-btn {
        flex: 1;
        min-width: 200px;
    }
    
    .maintenance-video iframe {
        width: 280px;
        height: 157px;
    }
}

@media (max-width: 480px) {
    .maintenance-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .maintenance-video iframe {
        width: 250px;
        height: 140px;
    }
    
    .maintenance-modal {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

/* VirusTotal Animation Styles */
.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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

.virustotal-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4) !important;
}

.virustotal-error button:hover {
    background: rgba(231, 76, 60, 0.3) !important;
}

/* File Size Error Modal Styles */
.error-modal {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none !important;
}

.error-modal.show {
    display: flex !important;
}

.error-modal .modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 1px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 20px 60px rgba(231, 76, 60, 0.2);
}

.error-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-bottom: 1px solid rgba(231, 76, 60, 0.3);
}

.error-header h2 {
    color: #ffffff;
}

.oversized-files-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.oversized-file-item {
    transition: all 0.3s ease;
}

.oversized-file-item:hover {
    transform: translateX(5px);
}

.error-details {
    text-align: left;
}

.error-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Scrollbar for oversized files list */
.oversized-files-list::-webkit-scrollbar {
    width: 6px;
}

.oversized-files-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.oversized-files-list::-webkit-scrollbar-thumb {
    background: rgba(231, 76, 60, 0.5);
    border-radius: 3px;
}

.oversized-files-list::-webkit-scrollbar-thumb:hover {
    background: rgba(231, 76, 60, 0.7);
} 