/* 
 * ===== Wilo Selector v5 - 5 New Feature Modules =====
 * Add this after the existing style.css content
 * This file contains ALL new module styles
 */

/* ===== Module 1: i18n Language Switch ===== */
.lang-toggle-container {
    position: fixed; top: 8px; right: 8px; z-index: 9999;
    display: flex; gap: 4px;
}
.lang-btn {
    padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15);
    background: rgba(44,44,46,0.9); color: #AEAEB2; font-size: 11px; cursor: pointer;
    transition: all 0.2s; backdrop-filter: blur(4px); font-family: inherit;
}
.lang-btn.active { background: rgba(0,155,132,0.2); color: #009B84; border-color: rgba(0,155,132,0.4); }
.lang-btn:hover { color: #FFF; }

/* ===== Module 2: Export Buttons ===== */
.export-row {
    display: flex; gap: 8px; margin-top: 12px;
}
.export-btn {
    flex: 1; padding: 12px; border-radius: 10px;
    border: 1px solid rgba(0,155,132,0.3);
    background: rgba(0,155,132,0.1);
    color: #009B84; font-size: 13px; cursor: pointer;
    font-weight: 600; text-align: center;
    transition: all 0.15s;
}
.export-btn:hover { background: rgba(0,155,132,0.2); }
.export-btn:active { transform: scale(0.97); }
.export-btn.alt {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #FFF;
}
.export-btn.alt:hover { background: rgba(255,255,255,0.1); }
.export-btn.gold {
    border-color: rgba(200,169,81,0.3);
    background: rgba(200,169,81,0.08);
    color: #C8A951;
}
.export-btn.gold:hover { background: rgba(200,169,81,0.15); }

/* ===== Module 3: History Modal ===== */
.history-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 9998; align-items: center; justify-content: center;
}
.history-modal.show { display: flex; }
.history-modal-content {
    background: #2C2C2E; border-radius: 12px;
    max-width: 480px; width: 90vw; max-height: 70vh;
    display: flex; flex-direction: column; overflow: hidden;
}
.history-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.history-modal-header h3 { color: #FFF; font-size: 16px; margin: 0; }
.history-list {
    flex: 1; overflow-y: auto; padding: 8px; min-height: 100px;
}
.history-item {
    display: grid; grid-template-columns: 1fr auto;
    gap: 8px; padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}
.history-empty {
    text-align: center; padding: 24px; color: #8E8E93; font-size: 13px;
}
.history-item-time { font-size: 12px; color: #E8EDF5; }
.history-item-desc { font-size: 11px; color: #8E8E93; margin-top: 2px; }
.history-apply-btn {
    padding: 6px 12px; border-radius: 6px;
    border: 1px solid rgba(0,155,132,0.3);
    background: rgba(0,155,132,0.1); color: #009B84;
    font-size: 11px; cursor: pointer; white-space: nowrap;
}
.history-clear-btn {
    padding: 4px 10px; border-radius: 6px;
    border: 1px solid rgba(255,69,58,0.3);
    background: rgba(255,69,58,0.1); color: #FF453A; font-size: 11px; cursor: pointer;
}
.history-close-btn {
    padding: 4px 10px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent; color: #AEAEB2; font-size: 15px; cursor: pointer;
}

/* ===== Module 4: Manual Button ===== */
.manual-btn {
    width: 100%; padding: 10px; border-radius: 10px;
    border: 1px solid rgba(0,155,132,0.3);
    background: rgba(0,155,132,0.08); color: #009B84;
    font-size: 13px; cursor: pointer; margin-top: 8px; font-weight: 600;
    transition: all 0.15s; text-align: center;
}
.manual-btn:hover { background: rgba(0,155,132,0.15); }
.manual-btn:active { transform: scale(0.97); }

/* ===== Print / PDF Styles ===== */
@media print {
    @page { margin: 15mm 10mm; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    body { background: #FFF !important; }
    .container { max-width: 100%; padding: 10px !important; }
    .tab-switcher, .lang-toggle-container, .submit-btn, .export-btn,
    .manual-btn, .detail-btn, .detail-content, .footer, .history-modal,
    .history-btn, .history-panel, .compare-bar { display: none !important; }
    .header { padding: 0; margin-bottom: 12px; background: none !important; }
    .header::before, .header::after { display: none; }
    .header h1 { color: #009B84 !important; font-size: 20px; margin: 0; }
    .header p { color: #666 !important; font-size: 12px; margin: 4px 0; }
    .logo-img { height: 30px; }
    .section-title h2 { color: #009B84 !important; font-size: 14px; }
    .card { background: #FFF !important; border: none !important; padding: 6px !important; }
    .type-btn, .area-btn, .scenario-pill, .fixture-item, .equipment-item {
        border: 1px solid #DDD !important; color: #333 !important; background: #F9F9F9 !important;
    }
    .type-btn.active, .area-btn.active, .scenario-pill.active, .fixture-item.selected {
        background: rgba(0,155,132,0.08) !important; border-color: #009B84 !important; color: #009B84 !important;
    }
    .results { padding: 0 !important; }
    .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
    .metric-card { border: 1px solid #DDD !important; border-radius: 6px; padding: 10px;
        background: #F5F5F5 !important; text-align: center; break-inside: avoid; }
    .metric-card .label { color: #666 !important; font-size: 11px; }
    .metric-card .value { color: #009B84 !important; font-size: 22px; font-weight: 700; }
    .metric-card .unit { color: #999 !important; font-size: 11px; }
    .product-card { break-inside: avoid; background: #FFF !important;
        border: 1px solid #DDD !important; border-radius: 6px; padding: 12px; margin-bottom: 10px; }
    .product-header .product-name { color: #333 !important; font-size: 14px; font-weight: 600; }
    .product-desc { color: #666 !important; font-size: 11px; }
    .spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
    .spec-item .spec-label { color: #666 !important; font-size: 10px; }
    .spec-item .spec-value { color: #333 !important; font-size: 11px; font-weight: 600; }
    .product-badge, .product-tags, .buy-btn, .detail-content { display: none !important; }
    .print-footer { display: block !important; text-align: center; font-size: 9px; color: #999; margin-top: 20px; border-top: 1px solid #EEE; padding-top: 8px; }
}
.print-footer { display: none; }
