/* Warm & Modern Care Home System Custom Styles */

:root {
    --color-navy: #0F172A;
    --color-teal: #0EA5E9;
    --color-warm-bg: #FAF9F6; /* Warm alabaster/cream tint */
}

/* Base resets & smooth rendering */
body {
    background-color: var(--color-warm-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Custom interactive touch target enhancement */
.touch-target {
    min-height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Premium Glow & Lift for Cards */
.premium-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.06), 0 8px 10px -6px rgba(14, 165, 233, 0.04);
}

/* Warm Ambient Glow Effects */
.ambient-glow {
    position: relative;
}
.ambient-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.08);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}
.ambient-glow:hover::after {
    opacity: 1;
}

/* Micro-animations for buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
}
.btn-primary:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

/* Smooth Navigation Active Highlights */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: var(--color-teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Glassmorphism panel styling */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
