/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

/* ===== MAIN CONTAINER ===== */
.container {
    width: 100%;
    max-width: 450px;
}

/* ===== WIFI CARD ===== */
.wifi-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease;
}

/* ===== CARD HEADER ===== */
.card-header {
    background: linear-gradient(135deg, #8b0000 0%, #b30000 50%, #ff0000 100%);
    padding: 35px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 15s linear infinite;
    opacity: 0.2;
}

/* ===== WIFI ICON ANIMATION ===== */
.wifi-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.wifi-icon {
    font-size: 60px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glow 2s infinite alternate;
}

.wifi-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,0,0,0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseRing 2s infinite;
}

.wifi-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 1;
}

.ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform-origin: left center;
    opacity: 0.7;
}

.ray:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.ray:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.ray:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.ray:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }

/* ===== LOGO & TYPOGRAPHY ===== */
.logo {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #ffcccc, #ffffff, #ffcccc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: logoGlow 3s infinite alternate;
}

.logo::after {
    content: 'WiFi HYDRA';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #ff0000, #ff6666, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: -1;
    filter: blur(5px);
    opacity: 0.7;
}

.tagline {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ===== STATUS BAR ===== */
.status-bar {
    background: #b30000;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.status-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    min-width: 90px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.status-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.status-item:hover .status-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Warna ikon yang soft */
.status-item:nth-child(1) .status-icon i {
    color: #98fb98; /* Pastel green */
}

.status-item:nth-child(2) .status-icon i {
    color: #f0e68c; /* Khaki yellow */
}

.status-item:nth-child(3) .status-icon i {
    color: #dda0dd; /* Plum */
}

.status-text {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.2;
}

/* Garis pemisah antar item */
.status-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
}

/* text untuk status option */

/* ===== CUSTOM ADDRESS INPUT ===== */
.custom-alamat-container {
    animation: fadeIn 0.3s ease;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 10px;
}

.custom-alamat-container label {
    color: #444;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.custom-alamat-container label i {
    color: #b30000;
    margin-right: 8px;
}

#custom-alamat {
    background: white;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    
}

#custom-alamat:focus {
    border-color: #b30000;
    box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.1);
}

/* Style untuk dropdown saat custom input aktif */
.custom-input-active #alamat {
    border-color: #b30000;
    background-color: #fff8f8;
}


/* Responsive untuk mobile */
@media (max-width: 480px) {
    .status-bar {
        padding: 10px 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .status-item {
        min-width: 80px;
        padding: 6px 8px;
        flex: 1;
        min-width: 0;
    }
    
    .status-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .status-text {
        font-size: 10px;
    }
    
    /* Hilangkan garis pemisah di mobile */
    .status-item:not(:last-child)::after {
        display: none;
    }
}

/* Efek highlight aktif */
.status-item.active {
    background: rgba(255, 255, 255, 0.05);
}

.status-item.active .status-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* ===== CARD BODY ===== */
.card-body {
    padding: 40px 30px;
}

/* ===== WELCOME TEXT ===== */
.welcome-text {
    text-align: center;
    margin-bottom: 35px;
}

.welcome-text h2 {
    color: #b30000;
    margin-bottom: 15px;
    font-size: 26px;
    font-weight: 700;
    min-height: 32px;
}

.welcome-text p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    min-height: 48px;
    border-left: 3px solid #b30000;
    padding-left: 15px;
    text-align: left;
    margin: 0 auto;
    max-width: 350px;
}

/* ===== FORM STYLES ===== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #b30000;
    width: 20px;
}

.form-control {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #b30000;
    background: white;
    box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b30000' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

/* ===== BUTTON STYLES ===== */

.btn {
    background: linear-gradient(135deg, #b30000 0%, #ff0000 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    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.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(179, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* ===== FEATURES SECTION ===== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.feature {
    background: #ffe6e6;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ffcccc;
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(179, 0, 0, 0.1);
}

.feature i {
    color: #b30000;
    font-size: 20px;
    margin-bottom: 8px;
}

.feature span {
    font-size: 12px;
    font-weight: 600;
    color: #b30000;
}

/* ===== CARD FOOTER ===== */
.card-footer {
    padding: 20px 30px;
    background: #f5f5f5;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.support {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.whatsapp-link {
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-link:hover {
    color: #b30000;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 0, 0, 0.3); }
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-30px, -30px) rotate(360deg); }
}

@keyframes logoGlow {
    0% { 
        background: linear-gradient(45deg, #ffcccc, #ffffff, #ffcccc);
        -webkit-background-clip: text;
        background-clip: text;
    }
    100% { 
        background: linear-gradient(45deg, #ffffff, #ffcccc, #ffffff);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* ===== TYPEWRITER CURSOR ===== */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    background-color: #b30000;
    margin-left: 2px;
    animation: blink 1s infinite;
}

.typing-container {
    display: inline-block;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #ffe6e6;
    border-top: 5px solid #b30000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 18px;
    color: #b30000;
    margin-bottom: 10px;
    font-weight: 600;
}

.loading-subtext {
    font-size: 14px;
    color: #666;
    text-align: center;
    max-width: 300px;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}

.success-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: slideInUp 0.5s ease-out;
    box-shadow: 0 20px 60px rgba(179, 0, 0, 0.3);
    border: 2px solid #b30000;
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b0000, #b30000, #ff0000);
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #b30000, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: bounce 1s ease infinite;
}

.success-text {
    font-size: 28px;
    color: #b30000;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.success-details {
    font-size: 16px;
    color: #666;
    text-align: center;
    max-width: 300px;
    margin: 0 auto 30px;
    line-height: 1.6;
    padding: 15px;
    background: #ffe6e6;
    border-radius: 10px;
    border-left: 4px solid #b30000;
}

/* ===== CONTINUE BUTTON ===== */
.continue-btn {
    background: linear-gradient(135deg, #b30000 0%, #ff0000 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    width: 100%;
    max-width: 250px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.continue-btn:hover::before {
    left: 100%;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(179, 0, 0, 0.4);
}

.continue-btn:active {
    transform: translateY(-1px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 480px) {
    .card-header {
        padding: 25px 20px;
    }
    
    .card-body {
        padding: 30px 20px;
    }
    
    .status-bar {
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .welcome-text h2 {
        font-size: 22px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .wifi-icon {
        font-size: 50px;
    }
    
    .support {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-link {
        justify-content: center;
    }
}