
/* Modern styling for VitalVue dashboard */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ec4899;
    --primary-dark: #db2777;
    --secondary: #8b5cf6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #fdf2f8 0%, #f0f9ff 100%);
    color: var(--dark);
}

/* Tab navigation */
.tab-button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.tab-button.text-rose-600::after {
    transform: translateX(-50%) scaleX(1);
}

.tab-button:hover:not(.text-rose-600) {
    color: var(--primary-dark);
}

.tab-content {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Card styling */
.bg-white {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

/* Vital signs cards */
.vital-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.vital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
}

.vital-value {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* Buttons */
button {
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

.bg-rose-500 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-rose-500:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #be123c 100%);
}

/* Auth tabs */
.auth-tab {
    transition: all 0.3s ease;
    position: relative;
    border: none;
    background: transparent;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.auth-tab.auth-active::after {
    transform: translateX(-50%) scaleX(1);
}

.auth-tab.auth-active {
    color: var(--primary) !important;
}

/* Auth modal */
#auth-modal .bg-white {
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Insights section */
.insight-card {
    border-left: 4px solid;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateX(5px);
}

.border-rose-500 {
    border-left-color: var(--primary);
}

.border-orange-500 {
    border-left-color: var(--warning);
}

/* Footer */
custom-footer {
    margin-top: auto;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .tab-button {
        font-size: 0.875rem;
        padding: 0.75rem 0.5rem;
    }
    
    .vital-card {
        padding: 1rem;
    }
    
    #auth-modal .bg-white {
        margin: 1rem;
    }
}
