/* CSS Variables */
: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: -webkit-fill-available;
background: var(--bg);
color: var(--text);
line-height: 1.6;
padding: 1rem;
transition: var(--transition);
}

/* Liquid Background */
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; }

@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 */
.container {
max-width: 1250px;
margin: 0 auto;
position: relative;
z-index: 1;
}
/* LOGO IMAGE */
.logo_image_header
{
width: 57px;
border: solid 2.5px;
border-radius: 50%;
padding: 4px;
box-shadow: 1px 1px 10px 7px #8db63d4f;
background: #3d3d57;
margin-right: 16px;
}

.logo_image_main
{
width: 105px;
border: solid 2.5px;
border-radius: 50%;
padding: 4px;
box-shadow: 1px 1px 10px 7px #8db63d4f;
background: #3d3d57;
}
/* 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;
margin-top: 20px;
letter-spacing: 0.2em; /* Add space between characters */
}

.letter {
font-size: 1.5rem;
font-weight: 700;
color: #fff !important;
display: inline-block;
animation: rollIn 0.5s ease-out forwards;
opacity: 0;
transform: translateY(20px);
}

@keyframes rollIn {
0% {
opacity: 0;
transform: translateY(20px) rotateZ(10deg);
}
100% {
opacity: 1;
transform: translateY(0) rotateZ(0);
}
}

.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;
flex-direction: column;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--border);
}

.header-top {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
margin-bottom: 1rem;
}

.header-bottom {
display: flex;
justify-content: end;
width: 100%;
}

.app-title {
font-family: system-ui !important;
font-size: 28px;
font-weight: 700;
background: #fff;
background-clip: text;
-webkit-text-fill-color: transparent;
display: flex;
align-items: center;
}

.app-title i {
font-size: 2rem;
margin-right: 10px;
}

/* Clock */
.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: 1rem;
color: #ffffff;
font-weight: 700;
letter-spacing: -0.2px;
}

/* 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;
}

.btn-primary {
background: var(--primary);
color: white;
}

.btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-3px);
}

.btn-export {
background: var(--export-color);
color: white;
}

.btn-export:hover {
background: #ffffff;
color: black;
transform: translateY(-3px);
}

.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);
}

.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;
}

.btn-settings {
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-bottom: 10px;
}

.btn-settings:hover {
transform: translate(-5px, -5px);
box-shadow: 7px 7px 0px 1px #ffffffa3;
}

/* 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);
}

.panel {
background: var(--card-bg);
border-radius: 14px;
padding: 16px;
margin-bottom: 20px;
box-shadow: var(--shadow);
border: 1px solid var(--border);
}

.panel-heading {
font-size: 20;
margin-bottom: 16px;
color: #f7f7f7db;
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 700;
}
.fa-check:before
{
border: solid 0.5px;
padding: 4px 5px;
font-size: 11px;
background: #8bb33c;
border-radius: 50px;
color: white;
vertical-align: middle;
margin: -5px;
line-height: 10px;
}
.panel-heading i {
color: #8ab33c;
}

/* Panel Layout */
.panels-row {
display: flex;
gap: 1rem;
}

.panel-50 {
flex: 1;
min-width: 300px;
}

.panel-100 {
width: 100%;
}

/* Login Screen */
.login-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
backdrop-filter: blur(3px);
}

.login-container {
background: var(--card-bg);
border-radius: 16px;
padding: 30px;
width: 90%;
max-width: 400px;
box-shadow: var(--shadow);
border: 1px solid var(--border);
}

.login-header {
text-align: center;
margin-bottom: 30px;
}

.login-header i {
font-size: 48px;
color: #8ab33c;
margin-bottom: 15px;
}

.login-header h1 {
margin-top: 12px;
font-size: 24px;
font-weight: 600;
color: var(--text);
background: linear-gradient(90deg, #96bf41, #46730e);
background-clip: text;
-webkit-text-fill-color: transparent;
}

.login-form .form-group {
margin-bottom: 20px;
}

.login-form label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--text);
}

.login-form input {
width: 100%;
padding: 12px 16px;
border-radius: 10px;
border: 2px solid var(--border);
background: var(--input-bg);
font-size: 16px;
color: var(--text);
box-sizing: border-box;
transition: var(--transition);
font-weight: 500;
border: solid #90b93d 0.5px;
}

.login-form input:focus {
outline: none;
border-color: #8bb33c;
box-shadow: 0 0 0 2px rgba(139, 179, 60, 0.3);
font-weight: bold;
font-size: 18px;
transition: all 0.6s ease;
}

.login-form input:hover {
border-color: #8bb33c;
box-shadow: -1px 1px 11px 11px rgb(127 249 12 / 41%);
}

.password-container {
position: relative;
flex: 1;
}

.password-toggle {
border: none;
color: #1a1a25;
cursor: pointer;
font-size: 15px;
padding: 16px 9px;
margin-left: 11px;
background: #95be46;
}

/* Form Elements */
.form-group {
margin-bottom: 1.5rem;
}

input, textarea, select {
width: 100%;
padding: 1rem;
border-radius: 12px;
border: 2px solid var(--border);
background: var(--input-bg);
color: var(--text);
font-size: 1rem;
transition: var(--transition);
font-weight: 500;
}

input:focus, textarea:focus, select:focus {
outline: none;
border-color: #8bb33c;
box-shadow: 0 0 0 2px rgba(139, 179, 60, 0.3);
}

.enhanced-select {
margin-top: 5px;
width: 50%;
padding: 14px 15px;
border-radius: 12px;
border: 2px solid var(--border);
background: var(--input-bg);
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;
}

.logo_image_loder {
display: inline-block;
animation: smoothScale 4s ease-in-out infinite;
}

@keyframes smoothScale {
0% { transform: scale(1); }
50% { transform: scale(1.15); }
100% { transform: scale(1); }
}
.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%);
}

textarea {
margin-bottom: 15px;
margin-top: 15px;
height: 200px;
resize: vertical;
transition: var(--transition);
}

textarea:hover {
border-color: #8bb33c;
}

textarea:focus {
outline: none;
border-color: #abff00;
box-shadow: -1px 1px 11px 11px rgb(127 249 12 / 41%);
}

/* Vendor Selector */
.vendor-selector {
margin-bottom: 20px;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
}

.vendor-highlight {
font-weight: 600;
color: #000000;
background-color: rgb(255 255 255);
padding: 6px 13px;
border-radius: 8px;
display: inline-flex;
align-items: center;
margin-left: 0px;
margin-top: 0px;
font-size: 14px;
border: solid 1.5px #5b5b63;
}

.vendor-highlight i {
margin-right: 6px;
}

/* Buttons */
.buttons {
display: flex;
gap: 12px;
margin-bottom: 20px;
flex-wrap: wrap;
}

button {
padding: 12px 20px;
border-radius: 10px;
border: none;
font-weight: 500;
font-size: 16px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}

button i {
margin-right: 8px;
}

button:hover {
opacity: 0.9;
}

button:active {
transform: scale(0.98);
}

button:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}

/* Progress Bar */
.progress-container {
width: 100%;
background: var(--input-bg);
border-radius: 12px;
padding: 15px;
display: none;
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.progress-bar {
width: 100%;
height: 20px;
background: rgba(255,255,255,0.1);
border-radius: 8px;
overflow: hidden;
}

.progress-bar > div {
height: 100%;
width: 0%;
border-radius: 8px;
background: linear-gradient(
135deg,
#2ecc71 25%,
#27ae60 25%,
#27ae60 50%,
#2ecc71 50%,
#2ecc71 75%,
#27ae60 75%
);
background-size: 40px 40px;
animation: moveStripes 1s linear infinite;
transition: width 0.4s ease-in-out;
}

@keyframes moveStripes {
from { background-position: 0 0; }
to { background-position: 40px 0; }
}
.progress-text {
display: inline-flex;
align-items: center;
gap: 10px;
font-size: 16px;
color: #ffffff;
}
.progress-text::before {
content: "";
width: 12px;
height: 12px;
border-radius: 50%;
background: #2ecc71;
box-shadow: 0 0 8px rgba(46,204,113,0.6);
display: inline-block;
transform-origin: center;
animation: progress-pulse 1000ms infinite ease-in-out;
}

@keyframes progress-pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.45);opacity: 0.45; }
100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
.progress-text::before { animation: none; opacity: 1; }
}
/* Error Message */
.error-message {
color: var(--danger);
margin-top: 10px;
font-weight: 500;
padding: 12px;
background-color: rgba(255, 71, 87, 0.2);
border-radius: 10px;
display: flex;
align-items: center;
border: 1px solid var(--danger);
}

.error-message i {
margin-right: 8px;
}

/* Stats Container */
.stats-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin-top: 15px;
}

.stat-card {
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 15px;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
transition: var(--transition);
}

.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-title {
font-size: 13px;
color: var(--text);
opacity: 0.8;
margin-bottom: 8px;
white-space: nowrap;
}

.stat-value {
font-size: 24px;
font-weight: 600;
color: #8bb33c;
}

/* Preview Container */
.preview-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
margin-top: 20px;
}

.product-card {
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
width: 100%;
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
transition: var(--transition);
}

.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.image-container {
width: 100%;
height: 250px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
background-color: var(--input-bg);
position: relative;
}

.image-container img {
width: 100%;
height: 100%;
object-fit: contain;
object-position: center top;
opacity: 0;
transition: opacity 0.3s ease;
}

.product-info {
padding: 12px;
border-top: 0.5px solid var(--border);
}

.quantity-container {
padding: 8px;
text-align: center;
background: linear-gradient(90deg, #8bb33c, #264d0d);
}

.product-quantity {
font-size: 16px;
font-weight: 600;
color: white;
margin: 0;
}

.sku-container {
padding: 8px;
text-align: center;
background-color: var(--input-bg);
border-top: 0.5px solid var(--border);
display: none;
}

.product-sku {
font-size: 13px;
color: var(--text);
opacity: 0.8;
margin: 0;
}

/* Missing Images List */
.missing-images-list {
margin-top: 10px;
max-height: 150px;
overflow-y: auto;
background-color: var(--input-bg);
padding: 12px;
font-size: 14px;
border-radius: 10px;
color: var(--text);
font-family: 'SF Mono', Menlo, monospace;
}

/* Shop Cards */
.shop-cards-container {
margin-top: 20px;
}
#loadingIndicator {
text-align: center;
}
.shop-cards-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(129px, 1fr));
gap: 14px;
}

.shop-card {
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 16px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
transition: var(--transition);
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
}

.shop-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.shop-card-logo {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 12px;
border: 2px solid #ffffff;
padding: 2px;
box-shadow: 0px 0px 4px 2px #85ab3c;
background: #7f7f90;
}

.shop-card-name {
font-weight: 600;
font-size: 13px;
margin-bottom: 7px;
color: var(--text);
}

.shop-card-stats {
display: flex;
flex-direction: column;
gap: 4px;
width: 100%;
margin-bottom: 8px; /* Add space between stats and last updated */
}

.shop-card-stat {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 0;
border-bottom: 1px solid var(--border);
}

.shop-card-stat:last-child {
border-bottom: none;
margin-bottom: -20px;
}

.shop-card-stat-label {
font-size: 14px;
color: var(--text);
opacity: 0.7;
}

.shop-card-stat-value {
font-weight: 600;
font-size: 14px;
color: #85c800;
background: #515151b3;
padding: 1px 7px;
border-radius: 5px;
}

.shop-card-last-fetch {
font-size: 10px;
color: var(--text);
opacity: 0.7;
margin-top: 0px;
padding-top: 0px;
border-top: 1px dashed var(--border);
text-align: center;
display: none;
}

/* Modal */
.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: 5% auto;
padding: 0;
border-radius: 16px;
width: 80%;
max-width: 800px;
box-shadow: var(--shadow);
animation: slideIn 0.3s;
overflow: hidden;
border: 1px solid var(--border);
}

.modal-header {
padding: 9px 22px;
background: linear-gradient(46deg, #8bc34a, #113f25);
color: white;
display: flex;
justify-content: space-between;
align-items: center;
}

.modal-header h3 {
margin: 0;
font-size: 1.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.close {
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:hover {
transform: translate(-5px, -5px);
box-shadow: 7px 7px 0px 1px #ffffffa3;
}

.modal-body {
padding: 1rem;
}

.modal-footer {
padding: 16px;
border-top: 1px solid var(--border);
text-align: right;
}

/* Settings Modal - Improved Design */
.settings-modal .modal-content {
max-width: 900px;
width: 90%;
}

.settings-modal .modal-body {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
padding: 25px;
}

.settings-section {
background: rgba(255, 255, 255, 0.05);
border-radius: 12px;
padding: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}

.settings-section:hover {
background: rgba(255, 255, 255, 0.08);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.settings-section h4 {
margin-bottom: 15px;
font-size: 1.2rem;
color: var(--text);
display: flex;
align-items: center;
gap: 10px;
padding-bottom: 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section h4 i {
color: #8ab33c;
font-size: 1.1rem;
}

.settings-section .btn {
width: 100%;
justify-content: center;
margin-top: 10px;
}

.setting-item {
margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: space-between;
}

.setting-item label {
display: flex;
align-items: center;
gap: 10px;
font-weight: 500;
font-size: 13px;
}

.setting-item select {
width: auto;
min-width: 120px;
}

/* Image Preloader - Improved */
.image-preloader {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.2);
z-index: 2;
backdrop-filter: blur(2px);
}

.preloader-circle {
width: 50px;
height: 50px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-top: 4px solid #8ab33c;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Improved iOS Switch */
.ios-switch {
position: relative;
display: inline-block;
width: 56px;
height: 30px;
}

.ios-switch input {
opacity: 0;
width: 0;
height: 0;
}

.ios-switch-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--border);
transition: .4s;
border-radius: 30px;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ios-switch-slider:before {
position: absolute;
content: "";
height: 24px;
width: 24px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ios-switch input:checked + .ios-switch-slider {
background-color: #8ab33c;
}

.ios-switch input:checked + .ios-switch-slider:before {
transform: translateX(26px);
}

/* Modal Footer - Improved */
.modal-footer {
padding: 15px 25px;
border-top: 1px solid var(--border);
text-align: right;
background: rgba(0, 0, 0, 0.1);
}

.modal-footer .btn {
margin-left: 10px;
}

/* Fetch Progress Modal */
.progress-info {
margin-bottom: 16px;
}

.progress-info p {
margin: 8px 0;
font-size: 16px;
}

.shop-stats {
margin-top: 20px;
}

.shop-stats h4 {
margin-bottom: 10px;
color: var(--text);
}

.shop-stats-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 12px;
}

.shop-stat-card {
background-color: var(--input-bg);
border-radius: 10px;
padding: 12px;
border-left: 4px solid #8bb33c;
}

.shop-stat-card.completed {
border-left-color: var(--success);
}

.shop-stat-card.error {
border-left-color: var(--danger);
}

.shop-name {
font-weight: 600;
margin-bottom: 8px;
color: var(--text);
}

.shop-status {
font-size: 14px;
margin-bottom: 4px;
color: var(--text);
opacity: 0.8;
}

.shop-progress {
font-size: 14px;
color: var(--text);
opacity: 0.8;
}

.shop-error {
font-size: 14px;
color: var(--danger);
margin-top: 4px;
}

.error-list {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid var(--border);
}

.error-list h4 {
margin-bottom: 10px;
color: var(--danger);
}

.error-list ul {
list-style-type: none;
padding: 0;
margin: 0;
}

.error-list li {
padding: 8px;
margin-bottom: 5px;
background-color: rgba(255, 59, 48, 0.1);
border-radius: 8px;
color: var(--danger);
font-size: 14px;
}

/* Missing SKU Modal */
.missing-stats {
margin-bottom: 16px;
font-size: 16px;
color: var(--text);
}

.missing-stats span {
font-weight: 600;
color: var(--danger);
}

.missing-items-container {
max-height: 400px;
overflow-y: auto;
}

.missing-items-table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}

.missing-items-table th, .missing-items-table td {
padding: 10px;
text-align: left;
border-bottom: 1px solid var(--border);
}

.missing-items-table th {
background-color: var(--input-bg);
font-weight: 600;
color: var(--text);
position: sticky;
top: 0;
}

.missing-items-table td {
color: var(--text);
}

.missing-items-table tr:last-child td {
border-bottom: none;
}

.missing-status {
display: inline-block;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
}

.missing-status.missing-image {
background-color: rgba(255, 59, 48, 0.1);
color: var(--danger);
}

.missing-status.missing-sku {
background-color: rgba(255, 149, 0, 0.1);
color: var(--warning);
}

/* Missing Image Modal */
#missingImageModal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 1000;
justify-content: center;
align-items: center;
}

#missingImageModal .modal-content {
background-color: var(--card-bg);
padding: 24px;
border-radius: 14px;
max-width: 400px;
width: 90%;
text-align: center;
box-shadow: var(--shadow);
border: 1px solid var(--border);
}

#missingImageModal h3 {
margin-top: 0;
margin-bottom: 16px;
font-size: 20px;
color: var(--text);
display: flex;
align-items: center;
justify-content: center;
}

#missingImageModal h3 i {
margin-right: 10px;
color: var(--danger);
}

#missingImageModal p {
margin-bottom: 20px;
color: var(--text);
opacity: 0.8;
font-size: 16px;
line-height: 1.5;
}

@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}

.pulse {
animation: pulse 1.5s infinite;
}

/* 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;
}

/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes slideIn {
from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.app-footer {
text-align: center;
padding: 20px 0;
margin-top: 20px;
color: var(--text);
font-size: 14px;
opacity: 0.7;
border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
body {
padding: 1rem;
}

.app-header {
flex-direction: column;
gap: 1rem;
}

.app-title {
font-size: 1.5rem;
}

.digital-clock {
font-size: 1.2rem;
}

.digital-date {
font-size: 0.9rem;
}

.stats-container {
grid-template-columns: repeat(2, 1fr);
}

.preview-container {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.shop-cards-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.modal-content {
width: 95%;
margin: 10% auto;
}

.settings-section h4 {
font-size: 1.1rem;
}

.btn {
padding: 0.6rem 1rem;
font-size: 0.9rem;
}

.logout-button, .btn-settings {
padding: 8px 12px;
font-size: 12px;
}

.panels-row {
flex-direction: column;
}

.panel-50 {
min-width: 100%;
}

.settings-modal .modal-body {
grid-template-columns: 1fr;
gap: 20px;
padding: 20px;
}

.settings-section {
padding: 15px;
}

.settings-section h4 {
font-size: 1.1rem;
}

.setting-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}

.setting-item select {
width: 100%;
}
}