

/* Default light theme variables */
:root {
    --paper-cream: #fdfdfd;
    --box-shadow:none;
  }
  
  
  [data-theme="dark"] {
    --paper-cream: #080808;
    --box-shadow:var(--shadow-md), inset 0 10px 20px -5px var(--accent-glow);

  }
  
  body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-y: auto;
    background: var(--paper-white);
    color: var(--ink-dark);
    transition: all 0.3s ease;
  }
  
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    min-height: 100vh;
  
}

.mode-selector {
    margin: 20px 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.mode-button {
    padding: 8px 16px;
    border: 2px solid rgb(0, 240, 200);
    background: transparent;
    color: var(--accent-warm);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-button.active {
    background: rgb(0, 240, 200);
    color: white;
}

.toggle {
    position: relative;
    transform: translateX(-28rem);


   
position: relative;
overflow: hidden;
z-index: 1;
transition: color 0.7s ease;
}

.toggle input {
    display: none;
}

.toggle label {
    display: block;
    width: 60px;
    height: 30px;
    cursor: pointer;
}

.track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    border-radius: 15px;
    transition: 0.4s;
}



input:checked + label .track {
    background-color: #666;
}

input:checked + label .thumb {
    transform: translateX(30px);
    background-color: #333;
}

input:checked + label .eye {
    background-color: white;
}


.container {
    max-width: 800px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: var(--card-border);
    box-shadow: var(--box-shadow);
    padding: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    border-radius: 10px;
    transition: background-color 0.4s;
    margin: 20px auto;
    
}

.container:hover{
    background: var(--paper-cream);

}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--ink-dark);
    transition: background-color 0.4s;
}

#upload-button {
    display: block;
    padding: 10px 15px;
    font-size: 20px;
    color: white;
    background-color: rgb(0, 240, 200);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.4s;
}

#upload-button:hover {
    background-color: rgb(255, 0, 128);
}

.drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 10px;
    transition: border-color 0.4s;
}

.drop-area:hover {
    border-color: rgb(255, 0, 128);
}

.results-container {
    margin-top: 20px;
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#uploaded-image {
    max-width: 100%;
    margin-top: 20px;
    border-radius: 10px;
}

#download-button, .process-all-btn, .download-all-btn {
    padding: 10px 20px;
    font-size: 18px;
    margin-top: 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: none;
}

.loader {
    display: none;
    width: 45px;
    aspect-ratio: .75;
    --c: no-repeat linear-gradient(#10fc9a 0 0);
    background: var(--c) 0% 50%, var(--c) 50% 50%, var(--c) 100% 50%;
    background-size: 20% 60%;
    animation: l9 1s infinite;
    position: relative;
    margin: 20px auto;
}

@keyframes l9 {
    33% {background-position: 0% 0%, 50% 100%, 100% 0%}
    66% {background-position: 0% 100%, 50% 0%, 100% 100%}
}

#success-notification {
    display: none;
    margin-top: 20px;
    padding: 10px;
    color: rgb(43, 255, 1);
    border-radius: 5px;
}


span{
 color: rgb(0, 240, 200);
}
