/* V2Ray Agent Manager - Custom Styles */

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Body background */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    min-height: 100vh;
}

/* Glass morphism effect */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Glow effects */
.glow {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.1);
}

.glow-success {
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.glow-danger {
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.3);
}

/* Animations */
.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Form inputs */
input, textarea, select {
    background: rgba(15, 23, 42, 0.8) !important;
}

/* Toast animations */
.toast-enter {
    animation: toastIn 0.3s ease-out;
}

.toast-leave {
    animation: toastOut 0.2s ease-in;
}

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

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

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.15);
}

/* Status indicator */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #f87171;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

/* Log colors */
.log-info { color: #22d3ee; }
.log-success { color: #34d399; }
.log-warning { color: #fbbf24; }
.log-error { color: #f87171; }
.log-cmd { color: #a78bfa; }

/* Modal backdrop */
.modal-backdrop {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    color: #0f172a;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Icon container */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
