/*
Theme Name: Pure Med Access Theme
Theme URI: https://egnitech.com
Author: Nippun Rana
Author URI: https://egnitech.com
Description: The Unified Gateway for 503A & 503B Ordering. Empowering clinics and hospitals with a streamlined, compliant, and transparent digital platform for patient-specific and office-use compounding medications.
Version: 1.0.0
Text Domain: pure-med-access
*/

/* Core CSS Variables - Native Dark/Light Mode */
:root {
    --color-bg: #fff;
    --color-text: #333;
    /* Keeping existing vars as legacy or secondary if needed, but primary focus on requested vars */
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --border-color: #e0e0e0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

[data-theme="dark"] {
    --color-bg: #1a1a1a;
    --color-text: #d1d5db;
    
    /* Mapping legacy vars to new dark vars for consistency if other parts use them */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #37a1ff;
    --secondary-color: #a0a0a0;
    --border-color: #333333;
}

/* Ensure body uses the new vars or maps correctly */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Toggle Styles */
.theme-toggle {
    background: transparent;
    color: var(--color-text);
    border: none;
    cursor: pointer;
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle .light-icon,
.theme-toggle .dark-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Light Mode: Show Moon (to switch to dark), Hide Sun */
.theme-toggle .light-icon { opacity: 0; transform: rotate(-90deg); }
.theme-toggle .dark-icon { opacity: 1; transform: rotate(0deg); }

/* Dark Mode: Show Sun (to switch to light), Hide Moon */
[data-theme="dark"] .theme-toggle .light-icon { opacity: 1; transform: rotate(0deg); }
[data-theme="dark"] .theme-toggle .dark-icon { opacity: 0; transform: rotate(90deg); }

/* Scroll Progress Line */
.scroll-progress-bar {
    position: fixed;
    top: 0; /* Changed from 65px to 0 as it's usually at the very top, or adjust if sticky header exists. */
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10001;
    pointer-events: none;
}
.scroll-progress-fill {
    height: 100%;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease-out;
    will-change: transform;
}



a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Basic Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header, footer {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

footer {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}
