/* ============================================
   SLYBUX WIFI PORTAL STYLES
   Version 1.0
   ============================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    /* Slybux Brand Colors */
    --slybux-blue: #0066cc;
    --slybux-green: #00cc66;
    --slybux-dark: #1a1a1a;
    --slybux-light: #f8fafc;
    --slybux-warning: #ff9800;
    --slybux-error: #ff4444;
    --slybux-success: #00cc66;
    
    /* Gradients */
    --gradient-primary: linear-gradient(90deg, var(--slybux-blue), var(--slybux-green));
    --gradient-dark: linear-gradient(90deg, var(--slybux-dark), var(--slybux-blue));
    --gradient-background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Spacing */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 40px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gradient-background);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
    color: #333;
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.slybux-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

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

/* ===== HEADER ===== */
.slybux-header {
    background: var(--gradient-dark);
    color: white;
    padding: var(--space-lg);
    text-align: center;
}

.slybux-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: var(--space-sm);
}

.logo-icon {
    font-size: 36px;
    background: var(--slybux-green);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

.logo-text h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: var(--space-lg);
}

/* ===== INPUT SECTION ===== */
.input-section {
    margin-bottom: var(--space-lg);
}

.input-group {
    position: relative;
    margin-bottom: var(--space-md);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
    z-index: 1;
}

.input-field {
    width: 100%;
    padding: 18px 20px 18px 60px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.input-field:focus {
    outline: none;
    border-color: var(--slybux-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.input-field.error {
    border-color: var(--slybux-error);
    animation: shake 0.5s;
}

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

/* ===== BUTTONS ===== */
.slybux-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.slybux-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.slybux-btn:active {
    transform: translateY(0);
}

.slybux-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.slybux-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== STATUS SECTION ===== */
.status-section {
    display: none;
    animation: slideUp 0.5s ease;
}

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

.status-card {
    background: var(--slybux-light);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: var(--space-md);
    border-left: 5px solid var(--slybux-blue);
    transition: all 0.3s;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ===== TIME DISPLAY ===== */
.time-display {
    text-align: center;
    margin: 25px 0;
}

.countdown-timer {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: var(--slybux-blue);
    margin: 15px 0;
    transition: color 0.3s;
}

.countdown-timer.warning {
    color: var(--slybux-warning);
}

.countdown-timer.critical {
    color: var(--slybux-error);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== PROGRESS BARS ===== */
.progress-container {
    margin: var(--space-md) 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: moveStripes 2s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* ===== INFO GRID ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: var(--space-md) 0;
}

.info-item {
    background: white;
    padding: 15px;
    border-radius: var(--radius-sm);
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.info-item:hover {
    border-color: var(--slybux-blue);
    transform: translateY(-2px);
}

.info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--slybux-dark);
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.action-btn {
    padding: 15px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.refresh-btn {
    background: #e8f4ff;
    color: var(--slybux-blue);
}

.bookmark-btn {
    background: #e8f6ef;
    color: var(--slybux-green);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== QR SECTION ===== */
.qr-section {
    text-align: center;
    padding: var(--space-md);
    background: var(--slybux-light);
    border-radius: 15px;
    margin-top: 25px;
    animation: fadeIn 0.5s;
}

.qr-code-container {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 15px 0;
}

.qr-hint {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* ===== FOOTER ===== */
.slybux-footer {
    padding: var(--space-md);
    text-align: center;
    background: var(--slybux-light);
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 13px;
}

.support-info {
    margin: var(--space-sm) 0;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    color: var(--slybux-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.social-link:hover {
    color: var(--slybux-green);
    text-decoration: underline;
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.notification.success {
    background: var(--slybux-success);
    color: white;
}

.notification.error {
    background: var(--slybux-error);
    color: white;
}

.notification.warning {
    background: var(--slybux-warning);
    color: white;
}

.notification.info {
    background: var(--slybux-blue);
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 480px) {
    .slybux-container {
        border-radius: var(--radius-md);
        margin: var(--space-sm);
    }
    
    .main-content {
        padding: var(--space-md);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .countdown-timer {
        font-size: 36px;
    }
    
    .logo-text h1 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding: var(--space-sm);
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

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

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

/* ===== SLYBUX BADGE ===== */
.slybux-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin: 5px;
}
