/**
 * Terminal Styling CSS
 * Emulates a dark terminal/console interface
 */

.terminal-window {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.terminal-header {
    background: linear-gradient(180deg, #3d3d3d 0%, #2d2d2d 100%);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
}

.terminal-btn.close { background: #ff5f56; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #27ca40; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-right: 52px; /* offset for buttons */
}

.terminal-body {
    background: #1a1a2e;
    min-height: 450px;
    max-height: 550px;
    padding: 20px;
    overflow-y: auto;
    color: #00ff00;
    font-size: 14px;
    line-height: 1.6;
}

.terminal-output {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-output .prompt {
    color: #00bcd4;
}

.terminal-output .command {
    color: #fff;
}

.terminal-output .success {
    color: #27ca40;
}

.terminal-output .error {
    color: #ff5f56;
}

.terminal-output .warning {
    color: #ffbd2e;
}

.terminal-output .info {
    color: #00bcd4;
}

.terminal-output .muted {
    color: #666;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.terminal-prompt {
    color: #00bcd4;
    margin-right: 8px;
    user-select: none;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    caret-color: #00ff00;
}

.terminal-input::placeholder {
    color: #555;
}

/* Scrollbar styling */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #0d0d1a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.terminal-body::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Jurisdiction selector styling */
#jurisdictionOptions {
    margin: 5px 0;
}

.jurisdiction-option {
    padding: 4px 0;
    cursor: pointer;
    transition: background-color 0.1s ease;
    font-family: inherit;
}

.jurisdiction-option.selected {
    background-color: rgba(39, 202, 64, 0.1);
    border-radius: 3px;
}

/* ================================================
   Results Panel - Below Terminal
   ================================================ */

.results-panel {
    max-width: 900px;
    margin: 30px auto 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.results-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
}

.results-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
}

.results-copy-btn:hover {
    background: #e8e8e8;
    color: #333;
}

.results-copy-btn.copied {
    background: #27ca40;
    border-color: #27ca40;
    color: #fff;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Result Card */
.results-main {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border-radius: 10px;
    padding: 25px;
    color: #fff;
    text-align: center;
}

.results-property {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
}

.results-tax-amount {
    margin-bottom: 10px;
}

.results-tax-amount .results-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-tax-amount .results-value {
    font-size: 42px;
    font-weight: 700;
    color: #27ca40;
}

.results-tax-monthly .results-label {
    font-size: 12px;
    color: #666;
    margin-right: 8px;
}

.results-tax-monthly .results-value {
    font-size: 18px;
    color: #00bcd4;
}

/* Breakdown Table */
.results-breakdown,
.results-authorities {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
}

.results-breakdown h3,
.results-authorities h3,
.results-copyable h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.results-table td:first-child {
    color: #666;
    font-size: 14px;
}

.results-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table .authority-type {
    font-size: 11px;
    color: #999;
    font-weight: normal;
    display: block;
}

.results-table tr.total-row td {
    border-top: 2px solid #ddd;
    font-weight: 700;
    color: #198754;
}

/* Copyable Text Area */
.results-copyable {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
}

.results-copyable textarea {
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    resize: vertical;
}

.results-copyable textarea:focus {
    outline: none;
    border-color: #00bcd4;
}
