/* Etsy Brand Colors */
:root {
    --etsy-orange: #F1641E;
    --etsy-orange-dark: #D84E14;
    --etsy-orange-light: #FF7F3F;
    --etsy-black: #222222;
    --etsy-gray: #595959;
    --etsy-light-gray: #E8E8E8;
    --etsy-bg: #FFFFFF;
    --etsy-green: #00A651;
    --etsy-red: #DC3545;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFF5F0 0%, #FFE8DC 100%);
    color: var(--etsy-black);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.header {
    background: var(--etsy-orange);
    color: white;
    padding: 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-top: 8px;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
}

@media (min-width: 968px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Cards */
.calculator-card,
.results-card {
    background: var(--etsy-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
}

.calculator-card h2,
.results-card h2 {
    color: var(--etsy-orange);
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculator-card h2 i,
.results-card h2 i {
    font-size: 1.3rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--etsy-black);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--etsy-light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--etsy-orange);
    box-shadow: 0 0 0 3px rgba(241, 100, 30, 0.1);
}

.input-with-icon {
    position: relative;
}

.currency-symbol,
.discount-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--etsy-gray);
    pointer-events: none;
}

.input-with-icon .form-control {
    padding-left: 35px;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--etsy-gray);
    font-style: italic;
}

/* Checkbox */
.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--etsy-light-gray);
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--etsy-orange);
    border-color: var(--etsy-orange);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Discount Section */
.discount-section {
    background: linear-gradient(135deg, #FFF9F5 0%, #FFE8DC 100%);
    padding: 25px;
    border-radius: 10px;
    border: 3px solid var(--etsy-orange);
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 3px 10px rgba(241, 100, 30, 0.2);
}

.discount-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.discount-header i {
    color: var(--etsy-orange);
    font-size: 1.3rem;
}

.discount-header h4 {
    margin: 0;
    color: var(--etsy-orange);
    font-size: 1.1rem;
    font-weight: 600;
}

.discount-note {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid var(--etsy-orange);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.discount-note i {
    color: var(--etsy-orange);
    margin-top: 2px;
    flex-shrink: 0;
}

.discount-note strong {
    color: var(--etsy-orange);
}

/* Cost Section */
.cost-section {
    background: linear-gradient(135deg, #F0FAF5 0%, #E8F5E9 100%);
    padding: 25px;
    border-radius: 10px;
    border: 3px solid var(--etsy-green);
    margin-bottom: 20px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 166, 81, 0.2);
}

.cost-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cost-header i {
    color: var(--etsy-green);
    font-size: 1.3rem;
}

.cost-header h4 {
    margin: 0;
    color: var(--etsy-green);
    font-size: 1.1rem;
    font-weight: 600;
}

.cost-note {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid var(--etsy-green);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cost-note i {
    color: var(--etsy-green);
    margin-top: 2px;
    flex-shrink: 0;
}

.cost-note strong {
    color: var(--etsy-green);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button */
.btn-calculate {
    width: 100%;
    padding: 15px;
    background: var(--etsy-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(241, 100, 30, 0.3);
}

.btn-calculate:hover {
    background: var(--etsy-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241, 100, 30, 0.4);
}

.btn-calculate:active {
    transform: translateY(0);
}

/* Results */
.result-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--etsy-light-gray);
}

.result-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-section h3 {
    color: var(--etsy-black);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.95rem;
}

.result-row span:first-child {
    color: var(--etsy-gray);
}

.amount {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--etsy-black);
}

.amount.negative {
    color: var(--etsy-red);
}

.amount.profit {
    color: var(--etsy-green);
}

.total-row {
    background: #FFF9F5;
    padding: 15px 12px;
    margin: 10px -5px;
    border-radius: 6px;
    border-left: 4px solid var(--etsy-orange);
}

.final-row {
    background: #F0FAF5;
    border-left: 4px solid var(--etsy-green);
}

.discount-row {
    background: #FFF0F0;
    padding: 10px 12px;
    margin: 5px -5px;
    border-radius: 6px;
    border-left: 3px solid var(--etsy-red);
}

.fees-section {
    background: #FFF9F5;
    padding: 20px;
    border-radius: 8px;
}

.profit-section {
    background: #F0FAF5;
    padding: 20px;
    border-radius: 8px;
}

/* VAT Section */
.vat-divider {
    margin: 15px 0 10px 0;
    padding: 8px 0;
    border-top: 2px solid var(--etsy-orange-light);
    border-bottom: 1px solid var(--etsy-light-gray);
}

.vat-divider span {
    color: var(--etsy-orange);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cost Divider */
.cost-divider {
    margin: 15px 0 10px 0;
    padding: 8px 0;
    border-top: 2px solid var(--etsy-green);
    border-bottom: 1px solid var(--etsy-light-gray);
}

.cost-divider span {
    color: var(--etsy-green);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount.gross-profit {
    color: #00A651;
    font-weight: 600;
}

/* Info Box */
.info-box {
    background: #FFF9F5;
    border: 2px solid var(--etsy-orange-light);
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.info-box i {
    color: var(--etsy-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.info-content {
    flex: 1;
}

.info-content strong {
    color: var(--etsy-orange);
    display: block;
    margin-bottom: 10px;
}

.info-content ul {
    margin: 0;
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 8px;
    color: var(--etsy-gray);
    line-height: 1.6;
}

.info-content li strong {
    display: inline;
    color: var(--etsy-black);
}

/* Footer */
.footer {
    background: var(--etsy-black);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 -4px 6px var(--shadow);
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

.footer i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 967px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .calculator-card,
    .results-card {
        padding: 20px;
    }
    
    .result-row {
        font-size: 0.9rem;
        flex-wrap: wrap;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .info-box {
        flex-direction: column;
    }
    
    .result-row span:first-child {
        font-size: 0.85rem;
    }
}

/* Animation for results appearing */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-card {
    animation: fadeIn 0.5s ease;
}
