* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --success-color: #4CAF50;
            --warning-color: #FF9800;
            --error-color: #f44336;
            --glass-bg: rgba(255, 255, 255, 0.95);
            --glass-border: rgba(255, 255, 255, 0.3);
            --text-primary: #333;
            --text-secondary: #666;
            --shadow-light: 0 10px 40px rgba(0, 0, 0, 0.1);
            --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
        }

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


        .app-container {
            background: rgba(252, 252, 252, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            margin: 0 auto;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 1200px;
            animation: slideUp 0.6s ease-out;
            grid-template-columns: 1fr 400px;
            align-items: start;
        }
        .main-panel {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 40px;
            box-shadow: var(--shadow-heavy);
            border: 1px solid var(--glass-border);
            animation: slideUp 0.6s ease-out;
        }
        .side-panel {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
.panel {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 25px;
            box-shadow: var(--shadow-light);
            border: 1px solid var(--glass-border);
            animation: slideUp 0.6s ease-out;
        }        

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        h1 {
            color: var(--text-primary);
            margin-bottom: 35px;
            font-size: 2.5em;
            text-align: center;
            background-color: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
        }

        h2 {
            color: var(--text-primary);
            margin-bottom: 20px;
            font-size: 1.4em;
            font-weight: 600;
        }
        .converter-section {
            margin-bottom: 30px;
        }

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

        label {
            display: block;
            color: var(--text-secondary);
            font-weight: 500;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
        }

        .input-row {
            display: flex;
            gap: 12px;
            align-items: stretch;
        }
        .currency-input-container {
            position: relative;
            flex: 1;
        }
        input[type="number"] {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e8ecf0;
            border-radius: 16px;
            font-size: 18px;
            font-weight: 500;
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.8);
            color: var(--text-primary);
        }

        input[type="number"]:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
            transform: translateY(-2px);
        }
.currency-select-container {
            position: relative;
            min-width: 160px;
        }
.currency-select {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e8ecf0;
            border-radius: 16px;
            font-size: 16px;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.9);
            cursor: pointer;
            transition: all 0.3s ease;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
            background-position: right 12px center;
            background-repeat: no-repeat;
            background-size: 16px;
            padding-right: 45px;
        }
.currency-select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }
.suggestions {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e8ecf0;
            border-radius: 12px;
            box-shadow: var(--shadow-light);
            z-index: 1000;
            max-height: 200px;
            overflow-y: auto;
            display: none;
        }
         .suggestion-item:last-child {
            border-bottom: none;
        }

        .swap-button {
             align-self: center;
            background: var(--primary-gradient);
            color: white;
            border: none;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 24px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 15px auto;
            box-shadow: var(--shadow-light);
        }

        .swap-button:hover {
            transform: rotate(180deg) scale(1.1);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        }
         .swap-button:focus {
            outline: 3px solid rgba(102, 126, 234, 0.3);
        }


        .result {
           background: var(--primary-gradient);
            color: white;
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            font-size: 24px;
            font-weight: 600;
            margin: 25px 0;
            animation: fadeIn 0.5s ease-out;
            min-height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
.result-amount {
            font-size: 32px;
            margin-bottom: 8px;
            font-weight: 700;
        }

        .result-details {
            font-size: 16px;
            opacity: 0.9;
            font-weight: 400;
        }


        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        .loading {
            color: #666;
            font-style: italic;
        }

        .error {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
            animation: shake 0.5s ease-out;
        }

        @keyframes shake {
            0%, 20%, 40%, 60%, 80% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
        }

        .rate-info {
            text-align: center;
            color: #666;
            font-size: 12px;
            margin-top: 10px;
            opacity: 0.8;
        }
        .refresh-btn:hover {
            border-color: #667eea;
            color: #667eea;
            transform: translateY(-1px);
        }

        .refresh-btn:focus {
            outline: 3px solid rgba(102, 126, 234, 0.3);
        }
     
.history-item {
            background: rgba(255, 255, 255, 0.7);
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 10px;
            border-left: 4px solid var(--primary-gradient);
            transition: transform 0.2s ease;
        }
 .history-item:hover {
            transform: translateX(5px);
        }
 .history-amount {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .history-time {
            font-size: 12px;
            color: var(--text-secondary);
        }
.clear-history {
            background: var(--error-color);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 12px;
            margin-top: 15px;
            transition: all 0.3s ease;
        }
.clear-history:hover {
            background: #d32f2f;
            transform: translateY(-1px);
        }

.chart-container {
            position: relative;
            height: 300px;
            margin-top: 20px;
        }

        .chart-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .chart-btn {
            padding: 6px 12px;
            border: 1px solid #ddd;
            border-radius: 20px;
            background: white;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s ease;
        }

        .chart-btn.active, .chart-btn:hover {
            background: var(--primary-gradient);
            color: white;
            border-color: transparent;
        }
 /* Accessibility Features */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
}
@media (max-width: 968px) {
            .app-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .main-panel {
                padding: 25px;
            }
            
            h1 {
                font-size: 2em;
            }
        }
@media (max-width: 480px) {
            .container {
                padding: 20px;
                margin: 10px;
            }
            
            h1 {
                font-size: 2em;
            }
            
            .input-row {
                flex-direction: column;
            }
            
            input[type="number"], select {
                width: 100%;
            }
        }
 @media (prefers-contrast: high) {
            :root {
                --glass-bg: rgba(255, 255, 255, 1);
                --text-primary: #000;
                --text-secondary: #333;
            }
            
            input, select, button {
                border-width: 3px;
            }
        }

  @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        } 