* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    margin-top: 0;
}

.calculator {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.currency-selector {
    margin-bottom: 2rem;
}

.currency-selector select {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 0.5rem;
    width: 150px;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: #666;
    font-weight: 500;
}

input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    padding-left: 30px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.results {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.result-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.label {
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.value {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.tooltip-icon {
    position: relative;
    cursor: help;
}

.tooltip-icon i {
    color: #6c757d;
    font-size: 0.9rem;
}

.tooltip-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    padding: 0.5rem;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clearBtn {
    background-color: #6c757d;
    color: white;
}

#downloadBtn {
    background-color: #4CAF50;
    color: white;
}

#clearBtn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

#downloadBtn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

.affiliate-banner {
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: #ff6b6b;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.affiliate-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.affiliate-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.affiliate-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.affiliate-link i {
    color: white;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.affiliate-link:hover i.fa-arrow-right {
    transform: translateX(5px);
}

/* Mobile Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    .calculator {
        padding: 1.5rem;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    .btn {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .value {
        font-size: 1rem;
    }
}
