@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.ftl_etsy_container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    color: #1f2937;
    line-height: 1.5;
    box-sizing: border-box;
}

.ftl_etsy_container * {
    box-sizing: border-box;
}

.ftl_etsy_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ftl_etsy_col {
    padding: 2.5rem;
}

/* Left Column - Inputs */
.ftl_etsy_col:first-child {
    background: #f9fafb;
    border-right: 1px solid #f3f4f6;
}

/* Right Column - Results */
.ftl_etsy_results_col {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #f3f4f6;
    display: flex;
    flex-direction: column;
}

.ftl_etsy_form_group {
    margin-bottom: 1.5rem;
}

.ftl_etsy_form_group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

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

.ftl_etsy_currency_symbol, .ftl_etsy_percent_symbol {
    position: absolute;
    color: #6b7280;
    font-weight: 500;
}

.ftl_etsy_currency_symbol {
    left: 1rem;
}

.ftl_etsy_percent_symbol {
    right: 1rem;
}

.ftl_etsy_container input[type="number"],
.ftl_etsy_container select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    color: #111827;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.ftl_etsy_container input[type="number"] {
    padding-left: 2rem;
}

.ftl_etsy_container input[id="ftl_etsy_vat_on_fees"] {
    padding-left: 1rem;
    padding-right: 2.5rem;
}

.ftl_etsy_container input[type="number"]:focus,
.ftl_etsy_container select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.ftl_etsy_container input[type="number"]::-webkit-inner-spin-button, 
.ftl_etsy_container input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

.ftl_etsy_container input[type="number"] {
    -moz-appearance: textfield;
}

/* Results Area */
.ftl_etsy_results_title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ftl_etsy_chart_container {
    position: relative;
    height: 220px;
    width: 100%;
    margin-bottom: 2rem;
}

.ftl_etsy_result_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
    font-size: 0.95rem;
    color: #d1d5db;
    transition: transform 0.2s ease;
}

.ftl_etsy_result_item:hover {
    transform: translateX(4px);
}

.ftl_etsy_value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ftl_etsy_text_danger {
    color: #f87171 !important;
    font-weight: 700 !important;
}

.ftl_etsy_text_success {
    color: #34d399 !important;
    font-weight: 700 !important;
}

.ftl_etsy_divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.25rem 0;
}

.ftl_etsy_result_subtotal_fees {
    font-size: 0.9rem;
    color: #9ca3af;
}

.ftl_etsy_result_total_fees {
    font-weight: 600;
    color: #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255,255,255,0.2);
}

.ftl_etsy_result_profit {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-top: auto; /* push to bottom */
    padding-top: 0.5rem;
}

.ftl_etsy_result_profit .ftl_etsy_value {
    font-size: 2.5rem;
    font-weight: 800;
}

.ftl_etsy_result_margin {
    font-size: 1.25rem;
    color: #9ca3af;
    margin-top: 0.75rem;
    font-weight: 600;
}

.ftl_etsy_result_margin .ftl_etsy_value {
    font-size: 2rem;
    font-weight: 800;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ftl_etsy_row {
        grid-template-columns: 1fr;
    }
    .ftl_etsy_col {
        padding: 1.5rem;
    }
    .ftl_etsy_col:first-child {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}
