/* 
 * „ამწონე“ (Amwone) - Premium Custom Style Sheet
 * იყენებს თანამედროვე დიზაინერულ მიდგომებს: Vibrant Colors, Soft Shadows, Smooth Transitions და Noto Sans Georgian შრიფტს
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --accent-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-grad: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --danger-grad: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --bg-main: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Noto Sans Georgian', 'Outfit', sans-serif;
    font-size: 0.95rem;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header & Navigation Styling */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.navbar-brand {
    font-weight: 700;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 16px !important;
}

.nav-link:hover, .nav-link.active {
    color: #4f46e5 !important;
    background-color: rgba(79, 70, 229, 0.08);
}

/* Cards & Containers */
.card-premium {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

/* Glassmorphism Styles */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons styling */
.btn-premium-primary {
    background: var(--primary-grad);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.4);
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.5);
    color: white;
}

.btn-premium-accent {
    background: var(--accent-grad);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.4);
}

.btn-premium-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
    color: white;
}

.btn-premium-outline {
    background: transparent;
    color: #4f46e5;
    font-weight: 600;
    border: 2px solid #4f46e5;
    border-radius: 12px;
    padding: 8px 22px;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background-color: rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
}

/* BMI Badges & Stats */
.bmi-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    color: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 30px -10px rgba(49, 16, 66, 0.3);
}

.bmi-card h3, .bmi-card h4, .bmi-card h5, .bmi-card p {
    color: white !important;
}

.bmi-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(to right, #a5b4fc, #e9d5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bmi-badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.bmi-category-underweight { background-color: #3b82f6; color: white; }
.bmi-category-normal { background-color: #10b981; color: white; }
.bmi-category-overweight { background-color: #f59e0b; color: white; }
.bmi-category-obese-1 { background-color: #ef4444; color: white; }
.bmi-category-obese-2 { background-color: #b91c1c; color: white; }
.bmi-category-obese-3 { background-color: #7f1d1d; color: white; }

/* Form Elements */
.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* Footer Section */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
    margin-top: auto;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Table Design */
.table-premium {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-premium th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding: 16px;
}

.table-premium td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* QR Code Display Container */
.qr-container {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 24px;
    display: inline-block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

/* Photo Thumbnail & Image styles */
.thumbnail-weight {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail-weight:hover {
    transform: scale(1.1);
}

/* Pulse Animation for active indicators */
.pulse-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
