/* Import Global Theme */
@import url('../../css/global-theme.css');
@import url('../../css/auth-modal.css');

/* FileShare - Decentralized P2P File Transfer Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-accent);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo h1 {
    color: #00FFFF;
    font-size: 28px;
    font-weight: 700;
}

.beta-badge {
    background: linear-gradient(135deg, #00FFFF 0%, #0099CC 100%);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #00FFFF;
    background: rgba(0, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    padding: 120px 2rem 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00FFFF 0%, #0099CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.feature-item i {
    color: #00FFFF;
    font-size: 20px;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Connection Status */
.connection-status {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.status-indicator i {
    font-size: 12px;
    animation: pulse 2s infinite;
}

.status-indicator.online i {
    color: #28a745;
}

.status-indicator.offline i {
    color: #dc3545;
}

.peer-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Upload Section */
.upload-section {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

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

.upload-header h3 {
    color: #00FFFF;
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.file-drop-zone {
    border: 3px dashed rgba(0, 255, 255, 0.5);
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-drop-zone:hover {
    border-color: #00FFFF;
    background: rgba(0, 255, 255, 0.05);
}

.file-drop-zone.dragover {
    border-color: #00FFFF;
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.02);
}

.drop-zone-content i {
    font-size: 48px;
    color: #00FFFF;
    margin-bottom: 20px;
}

.drop-zone-content h4 {
    font-size: 24px;
    margin-bottom: 15px;
}

.browse-btn {
    background: linear-gradient(135deg, #00FFFF 0%, #0099CC 100%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Selected Files */
.selected-files {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
}

.selected-files h4 {
    color: #00FFFF;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    width: 32px;
    height: 32px;
    background: #00FFFF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 600;
    font-size: 12px;
}

.remove-file {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: rgba(255, 68, 68, 0.1);
}

.total-size {
    margin-top: 15px;
    text-align: right;
    font-weight: 600;
    color: #00FFFF;
}

/* Transfer Options */
.transfer-options {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #00FFFF;
}

.option-group input[type="text"],
.option-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.option-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.transfer-btn {
    background: linear-gradient(135deg, #00FFFF 0%, #0099CC 100%);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.transfer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

/* Transfer Progress */
.transfer-progress {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #00FFFF 0%, #0099CC 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.transfer-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Transfer Complete */
.transfer-complete {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(40, 167, 69, 0.5);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.share-info {
    margin: 30px 0;
}

.share-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
}

.share-details label {
    min-width: 120px;
    color: #00FFFF;
    font-weight: 600;
}

.share-details input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
}

.copy-btn {
    background: linear-gradient(135deg, #00FFFF 0%, #0099CC 100%);
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

.completion-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.notify-btn, .new-transfer-btn {
    background: linear-gradient(135deg, #00FFFF 0%, #0099CC 100%);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notify-btn:hover, .new-transfer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

/* Recent Transfers */
.recent-transfers {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
}

.recent-transfers h3 {
    color: #00FFFF;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Preview Modal */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.preview-content {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 80%;
    max-height: 80%;
    position: relative;
}

.close-preview {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-preview:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .connection-status {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .transfer-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .completion-actions {
        flex-direction: column;
    }
    
    .share-details {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-details label {
        min-width: auto;
    }
}