@charset "utf-8";
/* CSS Document */
   
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Arial, sans-serif;
        }

        body {
            background-color: #f0f2f5;
            color: #333;
            line-height: 1.6;
        }

        .converter-container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 2rem;
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }

        .converter-header {
            text-align: center;
            margin-bottom: 2rem;
            padding: 1rem;
            background: linear-gradient(135deg, #1a237e, #0d47a1);
            color: white;
            border-radius: 8px;
        }

        .converter-header h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .converter {
            width: 100%;
            max-width: 800px;
            margin: 2rem auto;
            background: linear-gradient(145deg, #2c3e50, #34495e);
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        }

        .category-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
            justify-content: center;
        }

        .category-btn {
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 8px;
            background: #455a64;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .category-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .category-btn.active {
            background: #fb8c00;
        }

        .conversion-panel {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            gap: 1rem;
            align-items: center;
            background: #1a1a1a;
            padding: 2rem;
            border-radius: 10px;
            margin-bottom: 1.5rem;
        }

        .unit-group {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .unit-input {
            padding: 1rem;
            font-size: 1.5rem;
            border: 2px solid #455a64;
            border-radius: 8px;
            background: #fff;
            color: #333;
            width: 100%;
        }

        .unit-select {
            padding: 0.8rem;
            font-size: 1rem;
            border: 2px solid #455a64;
            border-radius: 8px;
            background: #fff;
            color: #333;
            cursor: pointer;
        }

        .swap-btn {
            background: #fb8c00;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .swap-btn:hover {
            transform: rotate(180deg);
            background: #f57c00;
        }

        .common-conversions {
            background: #263238;
            padding: 1.5rem;
            border-radius: 10px;
            margin-top: 2rem;
        }

        .common-conversions h3 {
            color: white;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .conversion-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .conversion-item {
            background: #37474f;
            padding: 1rem;
            border-radius: 8px;
            color: white;
        }

        .instructions {
            margin: 2rem 0;
            padding: 1.5rem;
            background: #f8f9fa;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .instructions h2 {
            color: #2c3e50;
            margin-bottom: 1rem;
            border-bottom: 2px solid #e67e22;
            padding-bottom: 0.5rem;
        }

        .instructions ul {
            list-style-type: none;
            padding-left: 1rem;
        }

        .instructions li {
            margin-bottom: 0.8rem;
            position: relative;
            padding-left: 1.5rem;
        }

        .instructions li::before {
            content: "•";
            color: #e67e22;
            font-weight: bold;
            position: absolute;
            left: 0;
        }

        @media (max-width: 768px) {
            .converter-container {
                margin: 1rem;
                padding: 1rem;
            }

            .conversion-panel {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .swap-btn {
                transform: rotate(90deg);
                margin: 0 auto;
            }

            .category-selector {
                flex-direction: column;
            }

            .category-btn {
                width: 100%;
            }
        }

        /* Animation for value changes */
        @keyframes highlight {
            0% { background-color: #fff; }
            50% { background-color: #e3f2fd; }
            100% { background-color: #fff; }
        }

        .highlight {
            animation: highlight 0.5s ease-in-out;
        }
   
