/* static/css/main.css - Darknet Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

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

.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 30px 0;
    border-bottom: 2px solid #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
}

.header h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header h1::before {
    content: '🔒';
    font-size: 2.5rem;
    filter: grayscale(100%) brightness(0.8);
}

.header h1 a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.header h1 a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.25);
}

.header p {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.main-content {
    padding: 40px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #444;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    border-color: #4ecdc4;
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5dd5cc 0%, #55c7e1 100%);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: #ff6b6b;
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff7b7b 0%, #fe6a62 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #96ceb4 0%, #85c1a3 100%);
    border-color: #96ceb4;
    color: #000;
}

.btn-success:hover {
    background: linear-gradient(135deg, #a6dec4 0%, #95d1b3 100%);
    box-shadow: 0 8px 25px rgba(150, 206, 180, 0.3);
}

.btn-success i.fa-upload {
    color: #000 !important;
}

.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 6px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

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

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.stats {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
}

.stats h3 {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    transition: all 0.3s ease;
    position: relative;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border-color: #666;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.stat-label {
    color: #888;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.footer p {
    color: #666;
}

/* Loading spinner */
.spinner {
    border: 4px solid #333;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
