/* assets/css/pages/commission-tool.css */

:root {
    --comm-primary: #0ea5e9;
    /* Sky Blue */
    --comm-secondary: #0284c7;
    --comm-dark: #0f172a;
    --comm-success: #10b981;
    --comm-danger: #ef4444;
    --comm-marketplace: #f97316;
    /* Orange for Trendyol/Marketplace */
    --comm-own: #8b5cf6;
    /* Violet for Own Site */
}

/* HERO SECTION */
.comm-hero {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 160px 0 100px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.comm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    transform: rotate(45deg);
}

.comm-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #bae6fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CALCULATOR CARD */
.comm-card-wrapper {
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.comm-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

/* INPUTS */
.comm-form-section {
    padding: 40px;
    background: #fff;
}

.input-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}

.comm-input {
    width: 100%;
    height: 54px;
    /* Fixed height for alignment */
    padding: 10px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s;
    appearance: none;
    /* Fix for select dropdowns */
    -webkit-appearance: none;
}

select.comm-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.comm-input:focus {
    outline: none;
    border-color: var(--comm-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.input-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
    min-height: 20px;
    /* Ensure one-line labels don't shrink compared to others */
    letter-spacing: 0.5px;
}

.input-group-text {
    background: transparent;
    border: none;
    font-weight: 600;
    color: #94a3b8;
}

/* RESULTS PANEL */
.comm-result-panel {
    background: #f1f5f9;
    padding: 40px;
    height: 100%;
    border-left: 1px solid #e2e8f0;
}

.comparison-row {
    margin-bottom: 30px;
}

.comp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 700;
    color: #334155;
}

.bar-container {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.marketplace {
    background: var(--comm-marketplace);
}

.bar-fill.own-site {
    background: var(--comm-own);
}

.profit-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    display: block;
    margin-top: 5px;
}

.diff-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

/* SUMMARY BOXES */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px dashed #cbd5e1;
}

.summary-item label {
    font-size: 0.8rem;
    color: #64748b;
    display: block;
}

.summary-item span {
    font-weight: 700;
    color: #334155;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .comm-result-panel {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 30px;
    }

    .profit-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .comm-hero h1 {
        font-size: 2rem;
    }

    .comm-form-section {
        padding: 25px;
    }
}