/* =========================================
   Medicam Core Design System v1.1
   Single Source of Truth
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;700;900&family=Heebo:wght@300;400;500;700;800;900&family=DM+Mono:wght@400;500&display=swap');

:root { 
    /* Core Colors */
    --bg-deep: #030712; 
    --gold: #c5a059; 
    --gold-light: #e5c079; 
    --gold-glow: rgba(197, 160, 89, 0.4);
    --blue-tech: #00d4ff; 
    --cyan-glow: rgba(0, 229, 255, 0.25);
    --wa-green: #25D366; 
    
    /* Glass & Borders */
    --border-color: rgba(197, 160, 89, 0.25); 
    --glass-bg: rgba(11, 29, 58, 0.6);
    
    /* Typography */
    --font-heading: 'Frank Ruhl Libre', serif;
    --font-ui: 'Heebo', sans-serif;
    --font-data: 'DM Mono', monospace;
}

* { box-sizing: border-box; outline: none; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body, html { 
    font-family: var(--font-ui); 
    background: var(--bg-deep); 
    color: #fff; 
    height: 100vh; 
    width: 100vw; 
    overflow: hidden; 
}

/* --- Master Header --- */
.master-header {
    position: fixed; top: 0; left: 0; right: 0; height: 10vh; min-height: 60px;
    background: rgba(3, 7, 18, 0.85); backdrop-filter: blur(20px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 4vw; z-index: 10000; border-bottom: 1.5px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand-side { 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    gap: 15px; 
    flex-shrink: 0; /* מונע מהלוגואים והטקסט להתכווץ הצידה */
}

.logo-frame { 
    width: 50px; height: 50px; border-radius: 50%; background: #fff; 
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    padding: 4px; transition: transform 0.4s ease;
}
.logo-frame:hover { transform: scale(1.05); }
.logo-frame.medicam { border: 2px solid var(--gold); box-shadow: 0 0 15px var(--gold-glow); }
.logo-frame.mediclass { border: 2px solid var(--blue-tech); box-shadow: 0 0 15px var(--cyan-glow); }
.logo-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

/* טקסט הלוגואים בצדדים */
.brand-text { 
    font-family: var(--font-ui); 
    font-size: 1.2rem; 
    font-weight: 700; 
    letter-spacing: 0.5px; 
    white-space: nowrap; 
}
.text-medicam { color: #fff; }
.text-mediclass { color: var(--blue-tech); }

.header-center { 
    text-align: center; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
}

/* הכותרת המרכזית */
.app-title { 
    font-family: var(--font-ui); 
    color: var(--gold-light); 
    font-size: 1.6rem; 
    margin: 0; 
    font-weight: 800; 
    line-height: 1; 
}

.app-subtitle { 
    color: #aaa; 
    font-size: clamp(0.7rem, 1.5vw, 1rem); 
    font-weight: 300; 
    margin-top: 4px; 
    letter-spacing: 1px;
}

/* --- Floating Controls --- */
.float-btn {
    position: fixed; bottom: 25px; z-index: 5000;
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; cursor: pointer; transition: 0.3s; text-decoration: none; backdrop-filter: blur(8px);
}
.float-fs { left: 25px; background: rgba(0, 212, 255, 0.05); color: var(--blue-tech); border: 1.5px solid var(--blue-tech); box-shadow: 0 0 15px rgba(0,212,255,0.2); }
.float-fs:hover { background: var(--blue-tech); color: #000; transform: scale(1.1); box-shadow: 0 0 25px var(--blue-tech); }

.float-home { right: 25px; background: rgba(197, 160, 89, 0.05); color: var(--gold); border: 1.5px solid var(--gold); box-shadow: 0 0 15px rgba(197,160,89,0.2); }
.float-home:hover { background: var(--gold); color: #000; transform: scale(1.1); box-shadow: 0 0 25px var(--gold); }

/* --- Base Workspace Container --- */
.app-workspace {
    position: absolute; top: 10vh; left: 0; right: 0; bottom: 0;
    padding: 20px; overflow-y: auto; overflow-x: hidden;
}