:root {
    --bg: #0f0f15;
    --card-bg: #1a1a25;
    --text: #e0e0ff;
    --primary: #6c5ce7;
    --primary-dark: #5649c5;
    --accent: #fd79a8;
    --success: #00b894;
    --danger: #ff4757;
    --warning: #fdcb6e;
    --input-bg: #252535;
    --border: #3a3a4a;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    --fetch-color: #af0a4e;
    --check-color: #5f27cd;
    --export-color: #00b894;
    --clear-color: #ff4757;
}
[data-theme="light"] {
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #333344;
    --primary: #6c5ce7;
    --primary-dark: #5649c5;
    --accent: #e84393;
    --success: #00b894;
    --danger: #ff4757;
    --warning: #fdcb6e;
    --input-bg: #ffffff;
    --border: #e0e0e5;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
  height: 100vh;
  background: var(--bg);      
  color: var(--text);         
  line-height: 1.6;
  padding: 1rem;              
  transition: var(--transition); 
  position: relative;      
}

svg.liquid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
  pointer-events: none; 
}

.blob {
  fill-opacity: 0.4;           
  filter: blur(100px);         
  animation: float 12s infinite alternate ease-in-out;
}



.blob1 { fill: #8bb33c; animation-duration: 10s; }
.blob2 { fill: #8bb33c; animation-duration: 12s; }
.blob3 { fill: #5f27cd; animation-duration: 14s; }
.blob4 { fill: #af0a4e; animation-duration: 16s; }

/* Floating animation */
@keyframes float {
  0% { transform: translate(0px, 0px) scale(1); }
  25% { transform: translate(150px, -100px) scale(1.2); }
  50% { transform: translate(-120px, 80px) scale(1.1); }
  75% { transform: translate(80px, 150px) scale(1.05); }
  100% { transform: translate(0px, 0px) scale(1); }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg, #000);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-content {
    text-align: center;
    position: relative;
}
.Loading_logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
.Loading_logo {
    font-size: 235px;
    color: #96bf48;
    position: relative;
    z-index: 3;
    opacity: 0;
    animation: 
        fadeInScale 1s ease-out 0.3s forwards,
        sPreloader-logoFloat 3s ease-in-out 1.3s infinite;
    text-shadow: 
        0 0 20px rgba(150,191,72,0.8),
        0 0 40px rgba(150,191,72,0.5),
        0 0 60px rgba(150,191,72,0.3);
}
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@keyframes sPreloader-logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.sPreloader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.sPreloader-ring.green {
    border: 4px solid rgba(150,191,72,0.6);
    animation: sPreloader-pulseGreen 2.5s infinite ease-out;
}
.sPreloader-ring.blue {
    border: 4px solid rgba(72,191,255,0.6);
    animation: sPreloader-pulseBlue 2.8s infinite ease-out;
}
.sPreloader-ring.purple {
    border: 4px solid rgba(180,72,255,0.6);
    animation: sPreloader-pulsePurple 3s infinite ease-out;
}
.sPreloader-ring.pink {
    border: 4px solid rgba(255,72,180,0.6);
    animation: sPreloader-pulsePink 3.2s infinite ease-out;
}
@keyframes sPreloader-pulseGreen {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}
@keyframes sPreloader-pulseBlue {
    0% { transform: translate(-50%, -50%) scale(0.65); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.85); opacity: 0; }
}
@keyframes sPreloader-pulsePurple {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}
@keyframes sPreloader-pulsePink {
    0% { transform: translate(-50%, -50%) scale(0.65); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}
.preloader-content p {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #96bf41, #245705);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.loading-text {
    display: flex;
    justify-content: center;
}
.letter {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    animation: pulse 3s infinite ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
}
@keyframes pulse {
    0%, 20% { opacity: 0; transform: translateY(20px); }
    30%, 70% { opacity: 1; transform: translateY(0); }
    80%, 100% { opacity: 0; transform: translateY(-20px); }
}
.letter:nth-child(1)  { animation-delay: 0.1s; }
.letter:nth-child(2)  { animation-delay: 0.3s; }
.letter:nth-child(3)  { animation-delay: 0.5s; }
.letter:nth-child(4)  { animation-delay: 0.7s; }
.letter:nth-child(5)  { animation-delay: 0.9s; }
.letter:nth-child(6)  { animation-delay: 1.1s; }
.letter:nth-child(7)  { animation-delay: 1.3s; }
.letter:nth-child(8)  { animation-delay: 1.5s; }
.letter:nth-child(9)  { animation-delay: 1.7s; }
.letter:nth-child(10) { animation-delay: 1.9s; }
.letter:nth-child(11) { animation-delay: 2.1s; }
.letter:nth-child(12) { animation-delay: 2.3s; }
.letter:nth-child(13) { animation-delay: 2.5s; }
.letter:nth-child(14) { animation-delay: 2.7s; }
.letter:nth-child(15) { animation-delay: 2.9s; }
.letter:nth-child(16) { animation-delay: 3.1s; }

/* HEADER */
.app-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.app-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #96bf41, #264d0d);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}
.app-title i {
    font-size: 2rem;
}

/* BUTTONS */
.btn {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
    height: 44px; /* Fixed height for all buttons */
}
/* Action Buttons - Enhanced styling */
.btn-fetch {
    background: var(--fetch-color);
    color: white;
}
.btn-fetch:hover {
    background: #c50d5a;
    transform: translateY(-3px);
}
.btn-check {
    background: var(--check-color);
    color: white;
}
.btn-check:hover {
    background: #7c3aed;
    transform: translateY(-3px);
}
.btn-export {
    background: #1D6F42;
    color: white;
}
.btn-export:hover {
    background: #ffffff;
    color: black;
    transform: translateY(-3px);
}
.btn-clear {
    background: #d32b39;
    color: white;
}
.btn-clear:hover {
    background: #ff6b81;
    transform: translateY(-3px);
}
.btn-primary {
    background: #81a43a;
    color: white;
    border: solid 0.5px;
    border-color: #000000;
}
.btn-primary:hover {
    background: #ffffff;
    color: black;
    transform: translateY(-3px);
}
.btn-secondary {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--input-bg);
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #ff6b81;
}
.btn-add {
    background: var(--fetch-color);
    color: white;
    align-self: flex-end;
    padding: 1rem 1.5rem;
    font-weight: 700;
    margin: 11px 2px;
    margin-bottom: 0px;
}
.btn-add:hover {
    background: #ffffff;
    color: #000;
    transform: translateY(-6px);
}

/* CARDS */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.card-title {
    padding-left: 6px;
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: #f7f7f7db;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}
.card-title i {
    color: #8ab33c;
}
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
}

.app-title {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
}

.app-title i {
    margin-right: 10px;
    color: #5e9c76; /* Shopify green or your theme color */
}

.clock-container {
   text-align: right;
    font-family: 'Orbitron', monospace;
    color: #94bd40;
}

.digital-clock {
    font-family: 'DS-Digital', monospace;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: -8px;
}

.digital-date {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: -0.2px;
    background: #8bb33c40;
    padding: 4px 11px;
    border-radius: 5px;
    font-family: system-ui;
    margin-top: 9px;
}

/* HEADER STYLES */
.store-header {
    display: flex;
    justify-content: space-between; /* heading on left, button on right */
    align-items: center; /* vertically center */
    margin-bottom: 30px; /* space below header */
    margin-top: 5px;
}
.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}
.header-actions {
    display: flex;
    gap: 10px;
}
.logout-button {
    border-radius: 6px;
    padding: 10px 17px;
    background: #ffffff;
    color: black;
    border: none;
    box-shadow: 4px 4px 0px 1px #8bb33c;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 10px;
    margin-bottom: 10px;
}
.logout-button:hover {
    transform: translate(-5px, -5px);
    box-shadow: 7px 7px 0px 1px #ffffffa3;
}

/* FILTERS */
.filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.filter-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 17px;
    background: rgb(49 49 59);
    border-radius: 12px;
    border: 1px solid #5b5b63;
}
.filter-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent);
    grid-column: 1 / -1;
}
.input-field {
    margin-top: 5px;
    position: relative;
    margin-bottom: 1rem;
}
.input-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
    font-weight: 500;
}
/* Enhanced Select Dropdown */
.enhanced-select {
    margin-top: 5px;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
        border: 2px solid #5b5b63;
    background: #1a1a25;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    transition: var(--transition);
    cursor: pointer;
}
.enhanced-select:hover {
    border-color: #8bb33c;
}
.enhanced-select:focus {
    outline: none;
    border-color: #abff00;
    box-shadow: -1px 1px 11px 11px rgb(127 249 12 / 41%);
}
input, textarea {
    margin-top: 5px;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #53535b;
    background: #1f1f2a;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    font-weight: 500;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #abff00;
    box-shadow: -1px 1px 11px 11px rgb(127 249 12 / 41%);
}
.sku-help {
    font-size: 0.8em;
    color: var(--text);
    opacity: 0.7;
    margin-top: 9px;
    padding: 0px 7px;
}
/* SKU CONTAINER */
.sku-container {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    grid-column: span 2;
}
.sku-input {
    flex: 1;
}
.sku-button {
    padding: 6px 12px;
    margin-top: 0;
    height: 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.sku-button:hover {
    background: var(--primary-dark);
}
/* ACTION BUTTONS */
.action-buttons {
   display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: center;
    margin-bottom: 0.2rem;
}
.loader-wrapper {
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    position: relative;
}
.loader {
    display: none;
    margin-left: 8px;
    height: 12px;
    width: 40px;
    position: relative;
}
.loader div {
    position: absolute;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loader div:nth-child(1) {
    left: 0px;
    animation: loader1 0.6s infinite;
}
.loader div:nth-child(2) {
    left: 0px;
    animation: loader2 0.6s infinite;
}
.loader div:nth-child(3) {
    left: 16px;
    animation: loader2 0.6s infinite;
}
.loader div:nth-child(4) {
    left: 32px;
    animation: loader3 0.6s infinite;
}
@keyframes loader1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
@keyframes loader3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}
@keyframes loader2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(16px, 0); }
}

/* STORE CARDS SECTION */
.store-cards-section {
    margin-bottom: 1.5rem;
}
.store-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.store-card {
    background: rgba(255, 255, 255, 0.1); /* glassy look */
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
}


.store-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.store-card:hover::after {
    opacity: 0.3;
    transform: rotate(30deg);
}

/* Store logo styles */
.store-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 3px 3px 10px 0px rgb(0 0 0 / 45%);
    border: 3px solid #8bb33c;
}

.store-logo-img {
    width: 68px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s 
ease;
}
.store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.store-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.store-order-count {
    font-weight: 700;
    text-shadow: -1px -1px 9px #ffffff6b;
    font-size: x-large;
    color: #8bb33c;
}

/* INPUT SECTIONS */
.input-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* PROGRESS BAR CONTAINER */
.progress-container { 
    margin: 15px 0;
    width: 100%;
    background: var(--input-bg);
    border-radius: 12px;
    padding: 15px;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Outer Track */
.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Actual Progress Fill */
.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        #2ecc71 25%,   /* Light Green */
        #27ae60 25%,   /* Dark Green */
        #27ae60 50%,
        #2ecc71 50%,
        #2ecc71 75%,
        #27ae60 75%
    );
    background-size: 40px 40px;
    animation: moveStripes 1s linear infinite;
    transition: width 0.4s ease-in-out;
}

/* Moving stripes effect */
@keyframes moveStripes {
    from { background-position: 0 0; }
    to { background-position: 40px 0; }
}
.inventory-list tr:nth-child(even) {
  background-color: #1a1a25; /* light gray */
}

.inventory-list tr:nth-child(odd) {
  background-color: #000000; /* white */
}
/* Progress Info */
.progress-info {
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--text);
    opacity: 0.85;
    display: flex;
    justify-content: space-between;
}
/* Enhanced Time Remaining Display */
.time-remaining {
    background: rgba(108, 92, 231, 0.2);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85em;
}
/* TIME DISPLAY */
.time-display {
    margin-top: 10px;
    font-weight: 600;
    color: #81a43a;
    text-align: center;
    margin-bottom: 23px;
    background: #3a3a45;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 4px;
    justify-self: center;
}

/* INVENTORY TABLE */
.inventory-list {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
    font-size: 14px;
}
.inventory-list th {
    text-align: left;
    padding: 1.2rem;
    background: #3a3a45;
    color: white;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.5s ease;
    font-size: 13px;
    white-space: nowrap;
}
.inventory-list td {
    padding: 7px 6px;
    border-bottom: 1px solid var(--border);
}
.inventory-list tr:last-child td {
    border-bottom: none;
}


/* PAGINATION */
.pagination {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.pagination button {
    padding: 5px 10px;
    min-width: 30px;
    border-radius: 5px;
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}
.pagination button:hover {
    background: var(--primary);
    color: white;
}
.pagination button.active {
    background: var(--primary);
    color: white;
}

/* REPORTS SECTION */
.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--input-bg);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}
.report-download {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.report-download:hover {
    text-decoration: underline;
}

/* MESSAGES */
.message {
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
}
.success {
    background-color: rgba(0, 184, 148, 0.2);
    color: var(--success);
    border: 1px solid var #fff;
}
.error {
    background-color: rgba(255, 71, 87, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* LOGIN FORM */
.login-container {
    max-width: 400px;
    margin: 130px auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
.error-message {
    color: var(--danger);
    background-color: rgba(255, 71, 87, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--danger);
    display: none;
}

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    top: 18vh;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1100;
    font-weight: 600;
    max-width: 80%;
    text-align: center;
    justify-content: center;
    opacity: 0;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast.success {
    background: linear-gradient(90deg, #96bf41, #264d0d);
}
.toast.error {
    background: linear-gradient(90deg, #d32b39, #8e2525);
    color: #ffffff;
}
.toast.warning {
    background: linear-gradient(90deg, #d32b39, #8e2525);
    color: #ffffff;
}

/* FOOTER */
.app-footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 16px;
    color: #ffffff;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}
.modal-content {
    background-color: var(--card-bg);
    margin: 25px auto;
    padding: 0;
    border-radius: 16px;
    width: 80%;
    max-width: 800px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s;
    overflow: hidden;
}
.modal-header {
    padding: 9px 22px;
    background: linear-gradient(46deg, #8bc34a, #113f25);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#current-store-label {
  display: inline-flex; 
  align-items: center;  
  gap: 8px;  
}
.blinking-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-radius: 50%;
  background-color: #00ff00; /* bright green */
  box-shadow: 0 0 8px #00ff00, 0 0 16px #00ff00; /* glow effect */
  animation: glowBlink 2s infinite ease-in-out; /* slower and smooth */
  vertical-align: middle;
}

@keyframes glowBlink {
  0%, 100% {
    opacity: 0.3;
    box-shadow: 0 0 4px #00ff00, 0 0 8px #00ff00;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px #00ff00, 0 0 24px #00ff00;
  }
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.close-modal, .close-confirm-modal, .close-mto-modal {
    border-radius: 10px;
    padding: 0px 13px 4px;
    background: #ffffff;
    color: black;
    border: none;
    box-shadow: 4px 4px 0px 1px #8bb33c;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 25px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 10px;
    margin-bottom: 7px;
}
.close-modal:hover, .close-confirm-modal:hover, .close-mto-modal:hover {
    transform: translate(-5px, -5px);
    box-shadow: 7px 7px 0px 1px #ffffffa3;
}
.modal-body {
    padding: 1.5rem;
}
.store-stats {
    margin-top: 2rem;
}
.store-stats h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.store-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--input-bg);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}
.store-stat-name {
    font-weight: 600;
}
.store-stat-value {
    color: #84bb48;
}
/* Modal percentage display */
.modal-percentage {
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85em;
    min-width: 45px;
    text-align: center;
    display: inline-block;
}
.modal .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Current store status section */
.current-store-status {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.current-store-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.current-store-value {
    color: #ffffff;
}
.current-store-progress {
    height: 16px;
    background: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
}
.current-store-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(
        135deg,
        #2ecc71 25%,   /* Light Green */
        #27ae60 25%,   /* Dark Green */
        #27ae60 50%,
        #2ecc71 50%,
        #2ecc71 75%,
        #27ae60 75%
    );
    background-size: 40px 40px;
    animation: moveStripes 1s linear infinite;
    transition: width 0.3s ease;
}

@keyframes moveStripes {
    from { background-position: 0 0; }
    to { background-position: 40px 0; }
}
/* Confirmation Modal Styles */
.confirm-modal {
    max-width: 500px;
}
.confirm-modal .modal-body {
    text-align: center;
}
.confirm-modal p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
/* Hide default cursor */
body {
  cursor: auto;
}

/* Inner dot */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #8bb33c; /* Green color */
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: background-color 0.9s;
}

/* Outer ring */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 2px solid #8bb33c;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: transform 0.15s ease-out;
}
.confirm-buttons {
    display: inline-flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0px;
}
.confirm-buttons button {
    padding: 0.75rem 4.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
}
#confirm-yes {
    background: #d32b39;
    color: white;
}
#confirm-no {
    background: #3ab251;
    color: var(--text);
    border: 1px solid var(--border);
}
#confirm-yes:hover {
    background: #ff6b81;
    transform: translateY(-3px);
}
#confirm-no:hover {
    background: #128027;
    transform: translateY(-3px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Make To Order Settings Modal Styles */
.mto-settings-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.mto-add-section, .mto-list-section {
    background: var(--input-bg);
    padding: 10px 13px;
    border-radius: 7px;
    border: 1px solid var(--border);
}
.mto-add-section h3, .mto-list-section h3 {
    margin-bottom: 1rem;
    color: var(--text);
}
.mto-search-container {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    place-items: anchor-center;
    width: 50%;
}
.mto-skus-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem;
}
.mto-sku-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.mto-sku-item:last-child {
    border-bottom: none;
}
.mto-sku-delete::before {
    content: "\f1f8"; /* Font Awesome trash unicode */
    font-family: "Font Awesome 6 Free"; /* ensure correct FA version */
    font-weight: 900; /* required for solid icons */
    margin-right: 0.25rem;
}
.mto-sku-delete {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.40rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
}
.mto-sku-delete:hover {
    background: #ff6b81;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        grid-template-columns: 2fr;
    }
    
    .sku-container {
        grid-column: span 1;
        flex-direction: column;
        align-items: stretch;
    }
    
    .sku-button {
        margin-top: 10px;
        width: 100%;
    }
    
    .input-sections {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .inventory-list {
        font-size: 0.9rem;
    }
    
    .inventory-list th, .inventory-list td {
        padding: 0.5rem;
    }
    
    .toast {
        max-width: 90%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .store-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .header-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .mto-settings-container {
        flex-direction: column;
    }
}