
:root {
    --primary-color: #FFBD07;
    --primary-gradient: linear-gradient(135deg, #FFB703, #FFBD07);
    --primary-hover: #E0A800;
    --secondary-color: #f43f5e;
    --secondary-gradient: linear-gradient(135deg, #f43f5e, #ec4899);
    --error-color: #ef4444;
    --success-color: #10b981;
    --text-color: #f3f4f6;
    --text-light: #9ca3af;
    --bg-color: #101010;
    --card-bg: #1a1a1a;
    --border-color: #202020;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.bg-circle-1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.15), rgba(244, 162, 97, 0.15));
    top: -100px;
    right: 0px;
    animation: float 8s ease-in-out infinite;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(236, 72, 153, 0.12));
    bottom: 0px;
    left: 10%;
    animation: float 9s ease-in-out infinite 1s;
}

.bg-circle-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(20, 184, 166, 0.1));
    top: 20%;
    left: -50px;
    animation: float 7s ease-in-out infinite 0.5s;
}

.bg-circle-4 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.1), rgba(244, 162, 97, 0.1));
    bottom: 30%;
    right: 5%;
    animation: float 10s ease-in-out infinite 1.5s;
}

.container {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 0 5px black;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
    border: 1px solid #1a1a1a;
}

.container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 10px;
    background: var(--primary-gradient);
    border-radius: 0 0 50px 50px;
    z-index: 2;
}

.container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.1), rgba(244, 162, 97, 0.1));
    border-radius: 0 0 0 100%;
    z-index: -1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header .brand-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 15px -3px rgba(255, 183, 3, 0.3);
    position: relative;
}

.header .brand-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    z-index: -1;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.header .brand-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header p {
    color: var(--text-light);
    font-size: 16px;
}

label {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

label i {
    margin-right: 10px;
    color: var(--primary-color);
}

input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: #101010;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 0 3px black;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.1);
}

select {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: #101010;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%239ca3af' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    box-shadow: 0 0 3px black;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.1);
}

.currency-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.currency-group > div {
    flex: 1;
    max-width: calc(50% - 30px); /* Adjust for swap icon width and gap */
}

.currency-group select {
    width: 100%;
    margin-bottom: 0;
}

.swap-icon {
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    margin: 0 5px;
    margin-top: 30px;
}

.swap-icon:hover {
    transform: rotate(180deg);
}

#result {
    margin-top: 24px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    background: rgba(96, 91, 0, 0.167);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 3px black;
}

#error {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--error-color);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    transform: translateY(-20px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .header h1 {
        font-size: 26px;
    }

    .header p {
        font-size: 14px;
    }

    input, select {
        padding: 16px;
    }

    .currency-group {
        flex-direction: row;
        gap: 5px;
    }

    .currency-group > div {
        max-width: calc(50% - 20px); /* Adjust for smaller screens */
    }

    .swap-icon {
        padding: 5px;
        margin: 0 5px;
        margin-top: 30px;
    }

    #result {
        padding: 15px;
        font-size: 16px;
    }
}