/* style.css - All CSS Styles */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    padding: 25px;
}

.file-upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.file-upload-area:hover, .file-upload-area.dragover {
    border-color: var(--primary);
    background: #e0e7ff;
    transform: translateY(-2px);
}

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

.progress-container {
    background: #e2e8f0;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin: 25px 0;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.result-card {
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    animation: slideIn 0.5s ease;
}

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

.btn-primary-custom {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-primary-custom:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}

.debug-console {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 20px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--danger); }

.floating-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Bypass Option Styles */
.bypass-option {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.bypass-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bypass-option.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.option-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.option-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.option-desc {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 0;
}

.method-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.info-box {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid var(--primary);
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid var(--warning);
}

/* Installation Tips */
.tips-list {
    list-style: none;
    padding-left: 0;
}

.tips-list li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.tips-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-gradient {
        padding: 20px 15px;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
    
    .btn-primary-custom {
        padding: 12px 25px;
        font-size: 16px;
    }
}

/* Animation for success */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-pulse {
    animation: successPulse 0.5s ease;
}

/* Loading animation */
@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: loading 1s ease-in-out infinite;
}