/*
    File: quote-calculator.css
    Description: Styles for the workstation quote wizard.
    Author: Generated by OpenAI Codex on 2025-06-07
    License: © 2025 Clearline Field Systems. All rights reserved.
*/

#workstation-quote {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.4;
}

h2.section-heading {
    background: #3399ff;
    color: #fff;
    padding: 8px 12px;
    margin: 24px 0 12px;
    font-size: 1.2em;
    border-radius: 4px;
}

.section {
    background: #f9f9f9;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    position: relative;
}

.section label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.section input[type="email"],
.section input[type="number"],
.section select {
    width: 100%;
    padding: 8px;
    margin-bottom: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.helper-text {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
}

.error-text {
    font-size: 0.85em;
    color: #c00;
    margin-top: 2px;
}

.info-icon {
    display: inline-block;
    margin-left: 4px;
    color: #3399ff;
    cursor: pointer;
    font-style: normal;
    position: relative;
}

.info-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #3399ff;
    color: #fff;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    top: -28px;
    left: 0;
    z-index: 10;
}

.build-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.build-option input[type="radio"] {
    margin-right: 8px;
    margin-top: 3px;
}

.build-option .build-label {
    font-weight: bold;
}

.build-option .build-desc {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-left: 24px;
    margin-top: 4px;
}

.btn {
    background: #3399ff;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 8px;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn:hover,
.btn:focus {
    background: #003f8a;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    background: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: #888;
    margin-left: 8px;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #666;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #333;
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.4s forwards, fadeOut 0.4s 3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

#quoteTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

#quoteTable th,
#quoteTable td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

#quoteTable th {
    background: #eaeaea;
}

.remove-btn,
.edit-btn {
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: opacity 0.2s;
}

.remove-btn {
    background: #c00;
}

.remove-btn:hover,
.remove-btn:focus {
    opacity: 0.8;
}

.edit-btn {
    background: #3399ff;
    margin-right: 4px;
}

.edit-btn:hover,
.edit-btn:focus {
    opacity: 0.8;
}

.highlight-discount {
    color: #0a0;
    font-weight: bold;
}

.fade-in-row {
    animation: rowFadeIn 0.4s ease-out;
}

.fade-out-row {
    animation: rowFadeOut 0.4s ease-in;
}

@keyframes rowFadeIn {
    from {
        opacity: 0;
        transform: scaleY(0.9);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes rowFadeOut {
    from {
        opacity: 1;
        transform: scaleY(1);
    }
    to {
        opacity: 0;
        transform: scaleY(0.9);
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    #printable-quote,
    #printable-quote * {
        visibility: visible;
    }
    #printable-quote {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 10px 12px;
    }
    .btn {
        width: 100%;
        margin-top: 12px;
    }
    .btn-secondary {
        margin-left: 0;
    }
    #quoteTable th,
    #quoteTable td {
        font-size: 0.85em;
        padding: 6px;
    }
}

#summaryText {
    width: 100%;
    height: 120px;
    padding: 8px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    resize: vertical;
}
