/* One <style> block, lifted in place. Separate per block: merging
   blocks changes which rule wins. */

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .converter-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            max-width: 700px;
            margin: 0 auto;
            transition: transform 0.3s ease;
        }

        .converter-container:hover {
            transform: translateY(-5px);
        }

        .title {
            text-align: center;
            color: #333;
            margin-bottom: 10px;
            font-size: 2.2em;
            font-weight: 600;
        }

        .subtitle {
            text-align: center;
            color: #666;
            margin-bottom: 30px;
            font-size: 1.1em;
        }

        .input-section {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .input-group {
            margin-bottom: 10px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 600;
            font-size: 1.2em;
        }

        .input-container {
            position: relative;
        }

        input[type="number"] {
            width: 100%;
            padding: 20px 70px 20px 20px;
            border: 3px solid #e0e0e0;
            border-radius: 15px;
            font-size: 1.4em;
            font-weight: 600;
            transition: all 0.3s ease;
            background: white;
        }

        input[type="number"]:focus {
            border-color: #667eea;
            outline: none;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }

        .currency-symbol {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #667eea;
            font-weight: 700;
            font-size: 1.4em;
            pointer-events: none;
        }

        .currency-code {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #888;
            font-weight: 600;
            font-size: 1.1em;
            pointer-events: none;
        }

        .conversions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .currency-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .currency-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border-color: #667eea;
        }

        .currency-header {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        .currency-flag {
            font-size: 2em;
            margin-right: 12px;
        }

        .currency-name {
            color: #333;
            font-weight: 600;
            font-size: 1.1em;
        }

        .currency-value {
            font-size: 1.6em;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 5px;
        }

        .exchange-rate {
            color: #888;
            font-size: 0.9em;
        }

        .loading {
            display: none;
            text-align: center;
            color: #667eea;
            margin: 20px 0;
            font-size: 1.1em;
        }

        .error {
            background: #ff6b6b;
            color: white;
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            margin: 20px 0;
            display: none;
        }

        .last-updated {
            text-align: center;
            color: #999;
            font-size: 0.9em;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }

        .empty-state {
            text-align: center;
            color: #888;
            font-size: 1.1em;
            margin: 40px 0;
            font-style: italic;
        }

        @media (max-width: 768px) {
            .converter-container {
                padding: 25px;
                margin: 10px;
            }
            
            .title {
                font-size: 1.8em;
            }
            
            .conversions-grid {
                grid-template-columns: 1fr;
            }
            
            input[type="number"] {
                padding: 15px 60px 15px 50px;
                font-size: 1.2em;
            }
            
            .currency-symbol {
                font-size: 1.2em;
            }
            
            .currency-value {
                font-size: 1.4em;
            }
        }
