/* WiFi Portal Custom Styles */

/* Color Variables */
:root {
    --wp-primary: #5e64ff;
    --wp-primary-dark: #4b50ff;
    --wp-secondary: #7c3aed;
    --wp-success: #10b981;
    --wp-danger: #ef4444;
    --wp-gray: #6b7280;
}

/* Card Styles */
.wifi-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.wifi-card .card-header {
    background: linear-gradient(135deg, var(--wp-primary), var(--wp-secondary));
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

/* Form Styles */
.wifi-form .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.wifi-form .form-control:focus {
    border-color: var(--wp-primary);
    box-shadow: 0 0 0 3px rgba(94, 100, 255, 0.1);
}

/* Button Styles */
.btn-wifi-primary {
    background: linear-gradient(135deg, var(--wp-primary), var(--wp-secondary));
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-wifi-primary:hover {
    background: linear-gradient(135deg, var(--wp-primary-dark), #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 100, 255, 0.3);
}

.btn-wifi-success {
    background: linear-gradient(135deg, var(--wp-success), #059669);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
}

/* Package Cards */
.package-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.package-card:hover {
    border-color: var(--wp-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.package-card.selected {
    border-color: var(--wp-primary);
    background: linear-gradient(135deg, rgba(94, 100, 255, 0.05), rgba(124, 58, 237, 0.05));
}

.package-card .price {
    color: var(--wp-primary);
    font-weight: 700;
}

/* Gateway Cards */
.gateway-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gateway-card:hover {
    border-color: var(--wp-primary);
}

.gateway-card.selected {
    border-color: var(--wp-primary);
    background-color: rgba(94, 100, 255, 0.05);
}

/* Status Indicators */
.status-success {
    color: var(--wp-success);
}

.status-pending {
    color: var(--wp-primary);
}

.status-failed {
    color: var(--wp-danger);
}

/* Voucher Display */
.voucher-display {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px dashed var(--wp-success);
    border-radius: 12px;
    padding: 20px;
}

.voucher-code {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--wp-success);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Loading Spinner */
.wifi-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--wp-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 576px) {
    .wifi-card {
        margin: 10px;
        border-radius: 12px;
    }

    .voucher-code {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wifi-card {
        background: #1f2937;
        color: #f9fafb;
    }

    .package-card,
    .gateway-card {
        background: #374151;
        border-color: #4b5563;
    }

    .package-card:hover,
    .gateway-card:hover,
    .package-card.selected,
    .gateway-card.selected {
        border-color: var(--wp-primary);
    }
}
