/* HT/TTC Converter Styles - Inspired by Franc-Euro converter */

.httottc-converter-container {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.httottc-converter-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.httottc-converter-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    text-align: center;
}

.httottc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.httottc-amounts-container {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.httottc-amount-field {
    flex: 1;
}

.httottc-field-group {
    display: flex;
    flex-direction: column;
}

.httottc-field-group label {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    margin-bottom: 8px;
}

.httottc-field-group input[type="number"],
.httottc-field-group select {
    padding: 12px 16px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 16px;
    background: #ffffff;
    transition: border-color 0.15s ease-in-out;
}

.httottc-field-group input[type="number"]:focus,
.httottc-field-group select:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.httottc-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.httottc-radio-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4a4a4a;
    cursor: pointer;
}

.httottc-radio-label input[type="radio"] {
    margin-right: 8px;
    margin-bottom: 0;
}

.httottc-convert-btn {
    background: #0969da;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    margin-top: 10px;
}

.httottc-convert-btn:hover {
    background: #0860ca;
}

.httottc-convert-btn:active {
    background: #0757ba;
}

.httottc-convert-btn:disabled {
    background: #8c959f;
    cursor: not-allowed;
}

.httottc-result {
    margin-top: 25px;
    padding: 20px;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
}

.httottc-result-content {
    font-size: 16px;
    line-height: 1.5;
}

.httottc-result-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 18px;
}

.httottc-result-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #d0d7de;
}

.httottc-result-line:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
    color: #0969da;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #d0d7de;
}

.httottc-result-label {
    color: #4a4a4a;
}

.httottc-result-value {
    font-weight: 500;
    color: #1a1a1a;
}

.httottc-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: httottc-spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes httottc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .httottc-converter-container {
        margin: 15px;
    }
    
    .httottc-converter-card {
        padding: 20px;
    }
    
    .httottc-amounts-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .httottc-result-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}