/**
 * AstraTivi Shared Styles
 * Common styling for all pages
 */

/* Base Styles */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    min-height: 100vh;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
    background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
}

.btn-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.btn-green:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

/* Input Styles */
.input-style {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-style:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Glow Effects */
.glow {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.glow-lg {
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.1);
}

.glow-success {
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.1);
}

/* Toast Notifications */
.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Logo Text Gradient */
.logo-text {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Status Indicators */
.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.status-expired {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.status-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

/* Copy Button Animation */
.copy-btn {
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn.copied {
    color: #4ade80 !important;
}

/* Sidebar Active State */
.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

/* Loading Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Alert Styles */
.alert-expired {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(185, 28, 28, 0.1) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .sidebar-desktop {
        display: none;
    }
}

/* Form Label */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

/* Badge Styles */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.badge-info {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}
