/* ═══════════════════════════════════════════════════════════
   MedicalTechno — Modern CSS UI Design System
   ═══════════════════════════════════════════════════════════ */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Obsidian Dark Theme Variables */
    --bg-primary: #03050c;
    --bg-secondary: #080b16;
    --surface: rgba(13, 17, 34, 0.65);
    --surface-hover: rgba(22, 28, 54, 0.8);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(56, 189, 248, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent: #38bdf8;
    --accent-dark: #0284c7;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    --accent-glow: rgba(56, 189, 248, 0.15);
    --danger: #f87171;
    --success: #34d399;
    --warning: #fbbf24;
}

/* Premium Light Theme overrides */
.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-hover: rgba(255, 255, 255, 0.96);
    --border: rgba(15, 23, 42, 0.06);
    --border-hover: rgba(2, 132, 199, 0.25);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent: #0284c7;
    --accent-dark: #0369a1;
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
    --accent-glow: rgba(2, 132, 199, 0.08);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Global Reset & CSS Defaults --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Decorative Background Grid Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.12;
    pointer-events: none;
    background-image: radial-gradient(var(--border-hover) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Background Blobs */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
}
.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 70%);
}

/* --- Header Styling --- */
.header {
    background: rgba(12, 15, 29, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.light-mode .header {
    background: rgba(248, 250, 252, 0.8);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}
.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: var(--border);
}
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.theme-toggle-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
.sun-icon { display: none; }
.light-mode .moon-icon { display: none; }
.light-mode .sun-icon { display: block; }

/* --- Responsive Header & Navigation Menu --- */
@media (max-width: 768px) {
    .header-container {
        padding: 14px 20px;
        gap: 16px;
    }
    .nav-menu {
        gap: 16px;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .logo {
        font-size: 1.25rem;
        justify-content: center;
    }
    .logo-img {
        width: 28px;
        height: 28px;
    }
    .nav-menu {
        gap: 10px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.btn-primary {
    background: var(--accent-gradient);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.4);
    filter: brightness(1.15);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary) !important;
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}
.btn-danger {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.btn-danger:hover {
    background: #f87171;
    color: white !important;
    transform: translateY(-1px);
}
.btn-success {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.btn-success:hover {
    background: #34d399;
    color: white !important;
    transform: translateY(-1px);
}
.btn:active {
    transform: scale(0.97);
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* --- Card Styles --- */
.card {
    background: var(--surface) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: var(--transition-smooth) !important;
}
.card:hover {
    border-color: var(--border-hover) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* --- Section Heading --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}
.section-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* --- Form Fields --- */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border);
    background: rgba(12, 15, 29, 0.45);
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}
.light-mode .form-control {
    background: #ffffff !important;
    color: var(--text-primary) !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
}
.light-mode .form-control::placeholder {
    color: #94a3b8 !important;
}
.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7 !important;
}
.card {
    color: var(--text-primary) !important;
}
.card h3 {
    color: var(--text-primary) !important;
    font-family: var(--font-heading);
}
.card .form-label {
    color: var(--text-secondary) !important;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background: rgba(12, 15, 29, 0.65);
}
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}
code {
    background: rgba(255, 255, 255, 0.04);
    color: #38bdf8 !important;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Contact Page Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 30px;
}
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}
.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.info-card-content h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.info-card-content p {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}
.map-wrap {
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 20px;
}
.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.dark-mode .map-iframe {
    filter: grayscale(1) invert(0.92) contrast(1.15) opacity(0.85);
}

/* --- Warranty Check Widget --- */
.warranty-widget {
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}
.search-box-wrap {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.search-box-wrap input {
    flex: 1;
}

/* --- Status Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.badge-active {
    background: rgba(52, 211, 153, 0.1) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.25) !important;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.15) !important;
}
.badge-pending {
    background: rgba(251, 191, 36, 0.1) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.25) !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.15) !important;
}
.badge-expired {
    background: rgba(248, 113, 113, 0.1) !important;
    color: #f87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.25) !important;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.15) !important;
}
.badge-inactive {
    background: rgba(148, 163, 184, 0.1) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
}

/* --- Admin Dashboard Layout --- */
.admin-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: calc(100vh - 73px);
}
@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}
.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-content {
    padding: 24px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}
.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border-left-color: var(--border-hover);
    padding-left: 20px;
}
.sidebar-link.active {
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0%, transparent 100%);
    border-left-color: var(--accent);
    padding-left: 20px;
    box-shadow: inset 4px 0 12px rgba(56, 189, 248, 0.03);
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--surface) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    transition: var(--transition-smooth);
}
.stat-card:hover {
    border-color: var(--border-hover) !important;
    transform: translateY(-2px);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* --- Admin Table --- */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: transparent !important;
    text-align: left !important;
}
.table > :not(caption) > * > * {
    background-color: transparent !important;
    color: inherit !important;
    border-bottom-color: var(--border) !important;
}
.table th {
    background: rgba(12, 15, 29, 0.5) !important;
    padding: 12px 14px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    color: var(--text-secondary) !important;
    border-bottom: 2px solid var(--border) !important;
}
.table td {
    padding: 12px 14px !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    transition: var(--transition-smooth);
}
.table tr:last-child td {
    border-bottom: none !important;
}
.table tr {
    transition: var(--transition-smooth);
}
.table tr:hover td {
    background: rgba(255, 255, 255, 0.015) !important;
    color: #fff !important;
}

/* --- QR Code Display & Templates --- */
.qr-preview-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.print-template-card {
    background: white;
    color: black;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

/* Shablon 1 (Vertical - Column Layout) */
.print-template-1 {
    width: 50mm;
    height: 30mm;
    padding: 1mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.print-template-1 .logo-area {
    height: 4mm;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5mm;
}
.print-template-1 .logo-area img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) contrast(2);
}
.print-template-1 .qr-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.print-template-1 .qr-area div, .print-template-1 .qr-area img {
    height: 16.5mm !important;
    width: 16.5mm !important;
}
.print-template-1 .contact-area {
    width: 100%;
    font-size: 5.2pt;
    line-height: 1.0;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    border-top: 0.2mm solid #000;
    padding-top: 0.5mm;
    margin-top: 0.5mm;
}

/* Shablon 2 (Horizontal - Row Layout) */
.print-template-2 {
    width: 50mm;
    height: 30mm;
    padding: 1.5mm;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.print-template-2 .logo-area {
    width: 5.5mm;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.print-template-2 .logo-area img {
    width: 100%;
    height: auto;
    max-height: 15mm;
    object-fit: contain;
    filter: grayscale(1) contrast(2);
}
.print-template-2 .qr-area {
    width: 22mm;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.print-template-2 .qr-area div, .print-template-2 .qr-area img {
    height: 21mm !important;
    width: 21mm !important;
}
.print-template-2 .contact-area {
    width: 16mm;
    font-size: 5.2pt;
    line-height: 1.1;
    text-align: left;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    border-left: 0.2mm solid #000;
    padding-left: 1.0mm;
}

/* Toast Notifications */
.toast-msg {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
}
.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

/* Form layouts */
.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

/* Modal styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.modal.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    transform: translateY(-50px);
    transition: var(--transition-bounce);
}
.modal.show .modal-content {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Prevent conflict with Bootstrap native modals */
.modal.fade {
    background: none !important;
    backdrop-filter: none !important;
    display: none !important;
    z-index: 1055 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.15s linear !important;
}
.modal.fade.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
.modal.fade .modal-content {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 24px !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    transition: none !important;
}
.modal.fade .modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid var(--border) !important;
    padding-bottom: 15px !important;
}

/* ════════════════════ PRINTING STYLES ════════════════════ */
@media print {
    @page {
        size: 50mm 30mm;
        margin: 0;
    }
    
    /* Set page settings */
    body, html {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 50mm !important;
        height: auto !important;
    }

    /* Hide all regular web interfaces completely */
    header, nav, footer, .header, .admin-sidebar, .admin-content, h1, h2, h3, .btn, .no-print, button, .ambient-bg {
        display: none !important;
    }
    
    /* Make print items display cleanly */
    .print-only-container {
        display: block !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 50mm !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Print template properties */
    .print-template-card {
        display: flex !important;
        width: 50mm !important;
        height: 30mm !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 1.5mm !important;
        page-break-after: always !important;
        background: white !important;
        color: black !important;
        page-break-inside: avoid !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .print-template-1 {
        width: 50mm !important;
        height: 30mm !important;
        padding: 1mm !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: white !important;
        color: black !important;
        box-sizing: border-box !important;
    }
    
    .print-template-2 {
        width: 50mm !important;
        height: 30mm !important;
        padding: 1.5mm !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: white !important;
        color: black !important;
        box-sizing: border-box !important;
    }

    /* Force black/white */
    .print-template-card, .print-template-card * {
        color: #000 !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   Light/Dark Mode Bootstrap Class Contrast Overrides
   ═══════════════════════════════════════════════════════════ */

/* Dark Mode Overrides (Default) */
body:not(.light-mode) .text-muted {
    color: #94a3b8 !important;
}
body:not(.light-mode) .text-secondary {
    color: #cbd5e1 !important;
}
body:not(.light-mode) .text-primary,
body:not(.light-mode) .text-white {
    color: #f8fafc !important;
}
body:not(.light-mode) .table {
    color: #cbd5e1 !important;
}
body:not(.light-mode) .btn-close {
    filter: invert(1) !important;
}

/* Light Mode Overrides */
body.light-mode .text-muted {
    color: #64748b !important;
}
body.light-mode .text-secondary {
    color: #475569 !important;
}
body.light-mode .text-primary,
body.light-mode .text-white {
    color: #0f172a !important;
}
body.light-mode .table {
    color: #0f172a !important;
}
body.light-mode .btn-close {
    filter: invert(0) !important;
}
body.light-mode .table-responsive {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}
body.light-mode .clinic-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}
body.light-mode .clinic-card:hover {
    border-color: var(--accent) !important;
}
body.light-mode .card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}
