/* ==========================================================
   BASE & THEME VARIABLES
   ========================================================== */
:root {
    --med-blue: #0f4c75;     /* Professional Medical Blue */
    --med-light: #3282b8;    /* Lighter Blue for accents */
    --success: #28a745;      /* Success/Checkout Green */
    --danger: #dc3545;       /* Alert/Red Alert */
    --warning: #ff9800;      /* Warning/OCR Highlight */
    --bg-color: #f4f7f6;     /* Soft Clinical Background */
    --text-main: #333333;
    --text-muted: #666666;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* ==========================================================
   UTILITY CLASSES
   ========================================================== */
.hidden { display: none !important; }
.w-100 { width: 100%; box-sizing: border-box; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.text-center { text-align: center; }

/* ==========================================================
   LAYOUTS & CARDS
   ========================================================== */
.top-bar {
    background: var(--med-blue);
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-bar h1 { margin: 0; font-size: 1.3rem; letter-spacing: 0.5px; }
.top-bar p { margin: 5px 0 0 0; font-size: 0.85rem; opacity: 0.9; }

.pos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 110px);
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow-y: auto;
}

/* ==========================================================
   LOGIN SCREEN
   ========================================================== */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--med-blue), var(--med-light));
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-card h2 {
    margin: 0 0 5px 0;
    color: var(--med-blue);
    font-size: 1.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* ==========================================================
   FORMS & INPUTS
   ========================================================== */
.form-group { margin-bottom: 15px; }

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border