        body, html {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            overflow-y: auto;
          
        }
body{
  background-image: 
    radial-gradient(at 40% 20%, rgba(250, 204, 21, 0.144) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(236, 72, 154, 0.164) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(236, 72, 154, 0.164) 0px, transparent 50%);
}
        .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 #facc15;
            background: transparent;
            color: #f59e0b;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }

        .mode-button.active {
            background: linear-gradient(135deg, #facc15, #f59e0b);
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
        }

        .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;
        }

        .thumb {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 26px;
            height: 26px;
            background-color: white;
            border-radius: 50%;
            transition: 0.4s;
        }

        .eye {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-color: #333;
            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: 1px solid rgba(255, 255, 255, 0.18);
            padding: 40px;
            backdrop-filter: blur(10px);
            position: relative;
            border-radius: 10px;
            transition: background-color 0.4s;
            margin: 20px auto;
        }

        header {
            width: 100%;
            padding: 10px 20px;
            background: transparent;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            transition: background-color 0.4s;
        }

        .logo { font-size: 2rem; }

        

        .sign-up-btn:hover {
            background: linear-gradient(135deg, #facc15, #f59e0b);
            color: white;
        }
        body.dark-mode .sign-up-btn:hover{
            box-shadow: 2px 4px 12px 2px rgba(250, 204, 21, 0.6);
            background: linear-gradient(135deg, #facc15, #f59e0b);
            color: rgb(0, 0, 0);
        }

        h1 {
            font-size: 28px;
            margin-bottom: 20px;
            color: #333;
            transition: background-color 0.4s;
        }

        #upload-button {
            display: block;
            padding: 10px 15px;
            font-size: 20px;
            color: white;
            background: linear-gradient(135deg, #facc15, #f59e0b);
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.4s;
            font-weight: 600;
        }

        #upload-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(250, 204, 21, 0.6);
        }

        .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: #facc15;
        }

        .results-container {
            margin-top: 20px;
            max-height: 600px;
            overflow: hidden;
            padding: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .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%;
            max-height: 600px;
            width: auto;
            height: auto;
            object-fit: contain;
            margin-top: 20px;
            border-radius: 10px;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        #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: 200px;
            height: 200px;
            position: relative;
            margin: 20px auto;
            justify-content: center;
            align-items: center;
        }
        
        .css-loader {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 6px solid rgba(236, 72, 153, 0.2);
            border-top-color: #ec4899;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }


        #success-notification {
            display: none;
            margin-top: 20px;
            padding: 10px;
            color: rgb(43, 255, 1);
            border-radius: 5px;
        }

        /* Dark mode styles */
        body.dark-mode {
            background: #1a1a1a;
            color: #ffffff;
            background-image: 
    radial-gradient(at 40% 20%, rgba(0, 0, 0, 0.144) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(0, 0, 0, 0.164) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(236, 72, 154, 0.164) 0px, transparent 50%),

        }

        body.dark-mode .container {
            background-color: rgba(30, 30, 30, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        }

     body.dark-mode .sign-up-btn{
        background-color: transparent;
        border: 1px solid rgba(250, 204, 21, 0.7);
        color: #facc15;
     }

        body.dark-mode h1 {
            color: #fff;
        }

        body.dark-mode .mode-button {
            border-color: #facc15;
            color: #facc15;
        }

        body.dark-mode .mode-button.active {
            background: linear-gradient(135deg, #facc15, #f59e0b);
            color: black;
            border: none;
            box-shadow: 0 4px 15px rgba(250, 204, 21, 0.6);
        }

        body.dark-mode #upload-button {
            background: linear-gradient(135deg, #facc15, #f59e0b);
            box-shadow: 0 4px 15px rgba(250, 204, 21, 0.4);
        }


        body.dark-mode .image-card {
            background-color: #2a2a2a;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }

        /* Only apply yellow color to specific spans, not all */
        .highlight-span{
         color: #f59e0b;
         font-weight: 700;
        }

        body.dark-mode .highlight-span{ 
        color: #facc15;
        font-weight: 700;
        }
