.adsense-calculator {
    background: #ffffff;
    color: #333333;
    padding: 25px;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.adsense-calculator h3 {
    color: #1a73e8;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.adsense-calculator .form-group {
    margin-bottom: 20px;
    position: relative;
}

.adsense-calculator label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.adsense-calculator input {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    font-size: 16px;
}

.adsense-calculator input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.adsense-calculator .tooltip {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: help;
}

.adsense-calculator .buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.adsense-calculator button {
    flex: 1;
    background: #1a73e8;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.adsense-calculator button:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.adsense-calculator button.reset {
    background: #f1f3f4;
    color: #333;
}

.adsense-calculator button.reset:hover {
    background: #e8eaed;
}

.adsense-calculator .toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background: #f1f3f4;
    padding: 5px;
    border-radius: 8px;
    width: fit-content;
    margin: 0 auto 20px;
}

.adsense-calculator .toggle-button {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    color: #555;
    transition: all 0.3s ease;
}

.adsense-calculator .toggle-button.active {
    background: #1a73e8;
    color: #fff;
}

.adsense-calculator .currency-select {
    width: 100%;
    padding: 12px;
    margin: 5px 0 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 16px;
}

#adsenseResult {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    animation: fadeIn 0.5s ease;
}

#adsenseResult.success {
    background: #e6f4ea;
    color: #1e8e3e;
}

#adsenseResult.error {
    background: #fce8e6;
    color: #d93025;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .adsense-calculator {
        padding: 20px;
        margin: 10px;
    }
    
    .adsense-calculator .buttons {
        flex-direction: column;
    }
}
