/* style.css */
/* 1. Default (Light Mode) Colors */
:root {
    --bg-body: linear-gradient(135deg, #4facfe, #00f2fe);
    --bg-card: #ffffff;
    --text-color: #333333;
}

/* 2. Dark Mode Colors (Activated by the Button) */
.dark-mode {
    --bg-body: #121212; /* Dark grey/black background */
    --bg-card: #1e1e1e; /* Slightly lighter card background */
    --text-color: #f1f1f1; /* White text */
}
#darkModeToggle {
    position: fixed !important;    /* Forces it to float over everything */
    bottom: 30px !important;       /* Locks it to the bottom */
    left: 30px !important;         /* Locks it to the left */
    width: 60px !important;        /* Fixed width */
    height: 60px !important;       /* Fixed height */
    border-radius: 50% !important; /* FORCES it to be a circle */
    
    /* Centering the icon */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;

    /* Styling */
    background: #4364F7 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 24px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
    z-index: 100000 !important;    /* Highest possible layer */
    transition: all 0.3s ease !important;
}

#darkModeToggle:hover {
    transform: scale(1.1) !important;
    background: #2ecc71 !important;
}
/* This fixes the "Exploding Logo" and the Black Background */
.medisafe-branding-logo {
    height: 50px; /* Forces the logo to stay small in the header */
    width: auto;
    mix-blend-mode: screen; /* This makes the black background of your JPG transparent */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    vertical-align: middle;
}

/* Cleanup the header area */
/* UPDATED GLOBAL LOGO STYLING */
/* FINAL ROBUST LOGO STYLING */
/* ROBUST LOGO & TIGHTER SPACING */
/* HEADER LOGO: MAXIMUM VISIBILITY */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0; /* Remove gap to control spacing via negative margin */
    height: 100%; /* Ensures container fills the header */
}

.medisafe-branding-logo {
    /* SIZE: Fills the header height but stays slightly smaller than the edges */
    height: 115px; 
    width: auto;
    object-fit: contain;

    /* BLENDING: Removes the black background from your JPG */
    mix-blend-mode: screen; 
    
    /* ROBUSTNESS: Makes the blue colors pop and adds a glow */
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));

    /* POSITIONING: Pulls the shield CLOSER to the name */
    margin-right: -15px; 
    margin-left: -20px; /* Removes dead space on the left */
    
    vertical-align: middle;
}

.title h1 {
    font-size: 42px; /* Increased to match the robust shield */
    margin: 0;
    line-height: 0.8;
    color: #ffffff;
    font-weight: 800;
}

.title p {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}
nav a {
    text-decoration: none;
    color: white;
    padding: 10px 15px;
    position: relative;
    transition: 0.3s;
}

/* The Active Indicator */
nav a.active {
    color: #00ff88; /* Change to your preferred highlight color */
    font-weight: bold;
}

nav a.active::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 3px;
    background-color: #00ff88;
    bottom: 0;
    left: 10%;
    border-radius: 2px;
}