/* Vivento Web App Styles */

/* ============================================
   Base & Reset
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    min-height: max(884px, 100dvh);
    margin: 0;
    padding: 0;
    background: var(--color-background-dark);
    color: white;
}

/* Safe area padding for mobile devices */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   Color Variables (matching Tailwind config)
   ============================================ */
:root {
    --color-primary: #0d7ff2;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-success: #22c55e;
    --color-background-dark: #0a0f14;
}

/* ============================================
   Material Symbols
   ============================================ */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 40;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 40;
}

/* ============================================
   Glass Card Effect
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Custom Background Gradient
   ============================================ */
.bg-gradient-custom {
    background: radial-gradient(circle at top left, #1a2332 0%, #0a0f14 100%);
}

/* ============================================
   Glow Button Effect
   ============================================ */
.glow-button {
    box-shadow: 0 0 20px rgba(13, 127, 242, 0.3);
    transition: all 0.3s ease;
}

.glow-button:hover {
    box-shadow: 0 0 30px rgba(13, 127, 242, 0.5);
}

.glow-button:disabled {
    box-shadow: none;
    opacity: 0.7;
}

/* ============================================
   Utility Classes
   ============================================ */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Custom Date Input Styling
   ============================================ */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
    cursor: pointer;
}

/* ============================================
   App Logo
   ============================================ */
.app-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.app-logo-sm {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.app-logo-lg {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
}

/* ============================================
   Background Blur Effects
   ============================================ */
.blur-circle {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    filter: blur(120px);
}

.blur-circle-primary {
    background: rgba(13, 127, 242, 0.1);
}

.blur-circle-blue {
    background: rgba(30, 58, 138, 0.1);
}

/* ============================================
   Tab Buttons (Admin)
   ============================================ */
.tab-btn {
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--color-primary);
    color: white;
}

/* ============================================
   Animations
   ============================================ */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
