 /* --- GLOBAL STYLES (Retained) --- */
   

        /* --- USER-DEFINED VARIABLES (UPDATED) --- */
        :root {
            --primary: #00ff88;
            --secondary: #0099ff;
            --accent: #ff3366;
            --dark: #0a0a0a;
            --dark-gray: #1a1a1a;
            --gray: #2a2a2a;
            --light: #f5f5f5;
            --transition: all 0.3s ease;
            --bg-color: var(--dark);
            --card-bg: var(--dark-gray);
            --border-color: rgba(255, 255, 255, 0.2);
            --success: #4CAF50; 
        }

        /* --- LIGHT THEME (NEW) --- */
        [data-theme="light"] {
            --primary: #0099ff;
            --secondary: #00cc88;
            --accent: #ff3366;
            --dark: #f5f5f5;
            --dark-gray: #ffffff;
            --gray: #e0e0e0;
            --light: #0a0a0a;
            --bg-color: var(--dark);
            --card-bg: var(--dark-gray);
            --border-color: rgba(0, 0, 0, 0.1);
        }

     
        /* --- CONTAINER CHANGE (MAX WIDTH 900px) --- */
        .container {
            width: 100%;
            max-width: 900px; /* UPDATED to 900px */
            margin: 0 auto;
            padding-top: 20px; 
        }

        /* --- CARD STYLING --- */
        .calculator-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            margin-bottom: 30px;
        }

        /* --- NEW: DESKTOP LAYOUT PARENT CLASS --- */
        .calculator-content-grid {
            display: grid;
            grid-template-columns: 1fr; /* Default: Single column for mobile */
            gap: 30px;
            margin-top: 25px;
        }
        
        /* --- INPUT/OPTIONS STYLING --- */
        .options {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .option-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 15px;
            border: 1px dashed var(--border-color);
            border-radius: 10px;
        }

        .option-label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
            font-size: 1.1rem;
        }

        .option-label i {
            color: var(--primary);
        }

        /* Styling for Input Fields */
        input[type="number"] {
            background-color: var(--gray);
            color: var(--light);
            border: 1px solid var(--border-color);
            padding: 10px;
            border-radius: 8px;
            font-size: 1.1rem;
            width: 100%;
            transition: var(--transition);
        }

        input[type="number"]:focus {
            border-color: var(--secondary);
            outline: none;
            box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.5);
        }
        
        /* Styling for Slider */
        input[type="range"] {
            width: 100%;
            height: 8px;
            background: var(--gray);
            border-radius: 5px;
            cursor: pointer;
            -webkit-appearance: none;
            transition: var(--transition);
        }
        
        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            transition: background .3s ease-in-out;
        }

        .value-display {
            text-align: center;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary);
        }
        
        /* --- RESULT DISPLAY STYLING --- */
        .result-display {
            background: var(--gray);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 25px; /* Increased padding */
            display: flex;
            flex-direction: column;
            justify-content: space-around; /* Spacing out results */
            gap: 15px;
        }

        .result-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 1.1rem;
            padding: 10px 0;
            border-bottom: 1px dotted var(--border-color);
        }

        .result-row:last-child {
            border-bottom: none;
            font-size: 1.5rem; /* Larger final result */
            font-weight: 700;
            color: var(--secondary);
        }

        .result-label {
            color: var(--light);
            opacity: 0.8;
            font-weight: 500;
        }

        .result-value {
            color: var(--primary);
            font-weight: 600;
        }

        .result-row:last-child .result-value {
            color: var(--primary);
        }

        /* --- MEDIA QUERIES (Desktop Layout) --- */
        @media (min-width: 768px) {
             /* Two-column grid layout for desktop */
            .calculator-content-grid {
                grid-template-columns: 1fr 1fr; 
            }

            /* Make options fill the left side */
            .options {
                gap: 30px; /* Increase vertical spacing on desktop */
            }
        }
        
        /* Mobile adjustments */
        @media (max-width: 767px) {
            .calculator-card {
                padding: 20px;
            }
            .result-row:last-child {
                font-size: 1.3rem;
            }
        }

        .calculator-card h3 {    color: var(--light);}
.calculator-card {    color: var(--light);}

.calculator-card h3 i{  color: var(--primary);}