/* VPN Service — Custom Styles */

:root {
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
}

/* Primary color utilities */
.text-primary-600 { color: var(--primary-600); }
.text-primary-700 { color: var(--primary-700); }
.bg-primary-50 { background-color: var(--primary-50); }
.bg-primary-100 { background-color: var(--primary-100); }
.bg-primary-600 { background-color: var(--primary-600); }
.bg-primary-700 { background-color: var(--primary-700); }
.hover\:bg-primary-700:hover { background-color: var(--primary-700); }
.border-primary-600 { border-color: var(--primary-600); }
.ring-primary-200 { --tw-ring-color: var(--primary-200); }
.focus\:ring-primary-500:focus { --tw-ring-color: var(--primary-500); }
.focus\:border-primary-500:focus { border-color: var(--primary-500); }

/* Gradient background for hero */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 50%, #1e1b4b 100%);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}
.badge-success {
    background-color: #dcfce7;
    color: #166534;
}
.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}
.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}
.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-600);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Server status indicator */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-online { background-color: #22c55e; }
.status-offline { background-color: #ef4444; }
.status-maintenance { background-color: #f59e0b; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Table styles */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile menu */
@media (max-width: 768px) {
    .mobile-menu-hidden {
        display: none;
    }
    .mobile-menu-visible {
        display: block;
    }
}

/* Animation for alerts */
.alert-enter {
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Price styling */
.price-large {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}
.price-period {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button disabled state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tooltip */
.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: #1f2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 50;
}
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}
