.calculator-container {
    background: white;
    border-radius: 25px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #184363;
    margin-bottom: 24px;
    text-align: center;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #184363;
    margin-bottom: 12px;
    text-align: left;
    border-bottom: 2px solid #e8ecf0;
    padding-bottom: 8px;
}

.currency-card {
    background: #effdff;
    border-radius: 25px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.currency-card {
    border: 2px solid #d8f2ff;
}    

.currency-card:hover {
    background: #effeff;

}

.receipt-card {
    background: #fff5f5;
    border: 2px solid #fed7d7;
}

.receipt-card:hover {
    background: #fef2f2;
}

.change-card {
    background: #f0fff4;
    border: 2px solid #c6f6d5;
    margin-top: 16px;
}

.change-card:hover {
    background: #f0fff4;
}

.currency-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #184363;
    margin-bottom: 8px;
    justify-content: space-between;
}

.flag {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #e8ecf0;
    flex-shrink: 0;
}

.flag-bg {
    background: linear-gradient(to bottom, #ffffff 33%, #00a859 33%, #00a859 66%, #d62612 66%);
}

.flag-eu {
    position: relative;
    background: #003399;
    overflow: hidden;
}

.flag-eu span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    color: #ffcc00;
    font-size: 6px;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.flag-eu span:nth-child(1)  { transform: translate(-50%, -50%) rotate(0deg) translate(15px) rotate(0deg); }
.flag-eu span:nth-child(2)  { transform: translate(-50%, -50%) rotate(30deg) translate(15px) rotate(-30deg); }
.flag-eu span:nth-child(3)  { transform: translate(-50%, -50%) rotate(60deg) translate(15px) rotate(-60deg); }
.flag-eu span:nth-child(4)  { transform: translate(-50%, -50%) rotate(90deg) translate(15px) rotate(-90deg); }
.flag-eu span:nth-child(5)  { transform: translate(-50%, -50%) rotate(120deg) translate(15px) rotate(-120deg); }
.flag-eu span:nth-child(6)  { transform: translate(-50%, -50%) rotate(150deg) translate(15px) rotate(-150deg); }
.flag-eu span:nth-child(7)  { transform: translate(-50%, -50%) rotate(180deg) translate(15px) rotate(-180deg); }
.flag-eu span:nth-child(8)  { transform: translate(-50%, -50%) rotate(210deg) translate(15px) rotate(-210deg); }
.flag-eu span:nth-child(9)  { transform: translate(-50%, -50%) rotate(240deg) translate(15px) rotate(-240deg); }
.flag-eu span:nth-child(10) { transform: translate(-50%, -50%) rotate(270deg) translate(15px) rotate(-270deg); }
.flag-eu span:nth-child(11) { transform: translate(-50%, -50%) rotate(300deg) translate(15px) rotate(-300deg); }
.flag-eu span:nth-child(12) { transform: translate(-50%, -50%) rotate(330deg) translate(15px) rotate(-330deg); }

.currency-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.currency-name {
    font-size: 16px;
    font-weight: 600;
    color: #184363;
}

.currency-code {
    font-size: 16px;
    font-weight: 500;
    color: #8c8c8c;
}

.amount-display {
    position: relative;
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    text-align: right;
    margin: 0px;
}

.amount-input {
    width: 100%;
    background: #ffffff;
    padding: 15px 20px;
    border: 1px solid #e8ecf0;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    color: #8c8c8c;
    text-align: left;
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-input::placeholder {
    color: #8c8c8c;
    transition: opacity 0.3s ease;
}

.amount-input:focus::placeholder,
.amount-input:not(:placeholder-shown)::placeholder {
    opacity: 0;
}

.amount-input:focus {
    border-color: #4c6ef5;
    color: #184363;
}  

.amount-input:hover {
    border-color: #4c6ef5;
}        

.currency-code-inside{
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    font-weight: 500;
    color: #8c8c8c;
    pointer-events: none;            
}

.calculation-section {
    padding-top: 5px;
    display: flex; 
    justify-content: left;
    align-items: center;
}        

.calculation-label {
    font-size: 14px;
    color: #718096;
    padding-right: 5px;
}

.calculation-value {
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    word-break: break-all;
    margin: 0px;
    padding: 0px;
}

.change-display {
    background: #ffffff;
    border: 2px solid #68d391;
    border-radius: 25px;
    padding: 12px 12px;
    margin-top: 8px;
    text-align: center;
}

.change-amount {
    font-size: 20px;
    font-weight: 700;
    color: #22543d;
    margin: 0;
}

.change-label {
    font-size: 14px;
    color: #4a5568;
    margin-top: 2px;
}

.controls {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.clear-button {
    flex: 1;
    padding: 16px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-button:hover {
    background: #ff5252;
    transform: scale(1.01);
}

.clear-button:active {
    transform: scale(0.99);
}

.rate-info {
    text-align: center;
    margin-top: 16px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 25px;
    font-size: 14px;
    color: #666;
}

.rate-value {
    font-weight: 600;
    color: #467ce6;
}

.disclaimer {
    margin-top: 16px;
    padding: 12px;
    background: #fffbeb;
    border-radius: 25px;
    font-size: 14px;
    color: #92400e;
    line-height: 1.3;
	text-align: left;
}

.disclaimer a {
    color: #4c6ef5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.disclaimer a:hover {
    color: #3b5bdb;
}

a:visited {
    color: #5f3dc4;
}


.flip-out {
    animation: flipOut 1s forwards;
}

@keyframes flipOut {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(180deg);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 15px;
        max-width: calc(100vw - 20px); /* Ensure it doesn't overflow */
    }
    
    .title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .amount-input {
        font-size: 20px;
    }
    
    .amount-display {
        font-size: 20px;
    }
    
    .change-amount {
        font-size: 20px;
    }
	
	.disclaimer {
        font-size: 14px;
        padding: 10px; /* Slightly reduced padding */
    }

}