/* Tool-specific styles only - base styles are in tool-layout.css */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
    margin-top: 60px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group > label,
.input-label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.text-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-input::placeholder {
    color: #6b7280;
}

.input-with-prefix,
.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
}

.text-input-prefixed {
    padding-left: 32px;
}

.input-suffix {
    position: absolute;
    right: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
}

.text-input-suffixed {
    padding-right: 36px;
}

.input-error {
    font-size: 13px;
    color: #ef4444;
}

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

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

.mode-toggle {
    display: flex;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.mode-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.mode-btn:hover {
    color: #e5e7eb;
}

.mode-btn.active {
    background-color: #3b82f6;
    color: #ffffff;
}

.region-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.region-tab {
    padding: 8px 16px;
    border: 1px solid #374151;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.region-tab:hover {
    color: #e5e7eb;
    border-color: #4b5563;
}

.region-tab.active {
    background-color: #1a1a1a;
    border-color: #3b82f6;
    color: #ffffff;
}

.rate-buttons,
.rate-buttons-uk,
.rate-buttons-eu,
.rate-buttons-us {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rate-btn {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #e5e7eb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.rate-btn:hover {
    background-color: #374151;
    border-color: #374151;
}

.rate-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.rate-btn .rate-value {
    color: #6b7280;
    margin-left: 4px;
    font-weight: 400;
}

.rate-btn.active .rate-value {
    color: rgba(255, 255, 255, 0.8);
}

.state-buttons-top,
.state-buttons-all {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.state-buttons-all {
    margin-top: 8px;
}

.expand-states-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 8px;
    transition: color 150ms ease;
    text-align: left;
}

.expand-states-btn:hover {
    color: #60a5fa;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
    flex: 1;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.lock-icon {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lock-icon.section-hidden {
    display: none;
}

.pro-feature-btn {
    position: relative;
}

.output-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.output-header h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: #d1d5db;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 16px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: border-color 150ms ease;
}

.stat-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1.2;
}

.stat-card-value.stat-highlight {
    color: #10b981;
}

.stat-card-value.stat-total {
    color: #3b82f6;
}

.copy-row {
    display: flex;
}

.pro-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.pro-feature-block {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-feature-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #d1d5db;
}

.pro-feature-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
}

.batch-upload-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.batch-filename {
    font-size: 13px;
    color: #9ca3af;
}

.batch-count {
    font-size: 13px;
    color: #9ca3af;
}

.batch-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #374151;
    padding-top: 16px;
}

.batch-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.batch-results-header h4 {
    font-size: 16px;
    font-weight: 500;
    color: #d1d5db;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid #374151;
    border-radius: 8px;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.batch-table thead {
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
}

.batch-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #374151;
}

.batch-table th:nth-child(n+3) {
    text-align: right;
}

.batch-table td {
    padding: 10px 16px;
    color: #e5e7eb;
    border-bottom: 1px solid #1a1a1a;
}

.batch-table td:nth-child(n+3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.batch-table tbody tr:nth-child(odd) {
    background-color: #141414;
}

.batch-table tbody tr:nth-child(even) {
    background-color: #0f0f0f;
}

.batch-table tbody tr:hover {
    background-color: #1a1a1a;
}

.summary-row td {
    padding: 14px 16px;
    font-weight: 600;
    color: #ffffff;
    border-top: 2px solid #374151;
    border-bottom: none;
    background-color: #141414;
}

.batch-table tbody tr.batch-error-row {
    border-left: 3px solid #ef4444;
}

.batch-table tbody tr.batch-error-row td {
    color: #fca5a5;
}

.batch-status-ok {
    color: #10b981;
    font-weight: 500;
    font-size: 12px;
}

.batch-status-error {
    color: #ef4444;
    font-weight: 500;
    font-size: 12px;
}

.comparison-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-rate-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-rate-row > label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    min-width: 48px;
    flex-shrink: 0;
}

.comparison-rate-row .input-with-suffix {
    flex: 1;
}

.comparison-rate-row .comparison-label-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
}

.comparison-remove-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 150ms ease;
    flex-shrink: 0;
}

.comparison-remove-btn:hover {
    color: #ef4444;
}

.comparison-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    transition: border-color 150ms ease;
}

.comparison-card.comparison-lowest {
    border-color: #059669;
}

.comparison-card.comparison-highest {
    border-color: #dc2626;
}

.comparison-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-card-label {
    font-size: 13px;
    color: #9ca3af;
}

.comparison-card-rate {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
}

.comparison-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.comparison-card-vat {
    font-size: 14px;
    color: #9ca3af;
}

.comparison-card-total {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.comparison-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.comparison-tag-lowest {
    background-color: #064e3b;
    color: #6ee7b7;
}

.comparison-tag-highest {
    background-color: #7f1d1d;
    color: #fca5a5;
}

.export-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: opacity 300ms ease, transform 300ms ease;
}

.toast.toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.toast-success {
    border-color: #059669;
}

.toast.toast-error {
    border-color: #dc2626;
}

@media (max-width: 768px) {
        padding: 32px 16px;
    }

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-card-value {
        font-size: 20px;
    }

    .output-section {
        padding: 16px;
    }

    .pro-feature-block {
        padding: 16px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .rate-buttons,
    .rate-buttons-uk,
    .rate-buttons-eu {
        gap: 6px;
    }

    .rate-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .region-tabs {
        flex-wrap: wrap;
    }

    .region-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .comparison-rate-row {
        flex-wrap: wrap;
    }

    .comparison-rate-row > label {
        min-width: 100%;
    }

    .export-buttons {
        flex-direction: column;
    }

    .comparison-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .comparison-card-right {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card-value {
        font-size: 18px;
    }

    .batch-upload-area {
        flex-direction: column;
        align-items: stretch;
    }
}