/* ==========================================================================
   合同会社みらい樹 - UIモック専用スタイル (uimocks.css)
   仕様書第7項, 第15項, 第20項, 第24項, 第26項, 第35項 準拠
   各UIモックには「DEMO」「SAMPLE」「画面イメージ」ラベルを明示
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. UIモック共通コンテナ & デモバッジ
   -------------------------------------------------------------------------- */
.ui-mock-frame {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ui-mock-badge-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 50;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.window-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.window-controls-dots {
    display: flex;
    gap: 6px;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title-text {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --------------------------------------------------------------------------
   1. 画像認識・カメラAI UIモック (仕様書第15項: トマト認識 & Bounding Box)
   -------------------------------------------------------------------------- */
.camera-vision-mock {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    color: #ffffff;
}

.camera-vision-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.camera-hud-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.camera-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.camera-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 38, 38, 0.85);
    color: #ffffff;
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.camera-live-badge .rec-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: blinkRec 1s infinite;
}

@keyframes blinkRec {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.camera-metrics-panel {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: flex;
    gap: 16px;
}

.metric-item-val {
    font-weight: 800;
    font-size: 0.9375rem;
}

.val-mature { color: #f87171; }
.val-immature { color: #4ade80; }
.val-total { color: #38bdf8; }

/* Bounding Box 表現 */
.bounding-box {
    position: absolute;
    border: 2px solid;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-base);
}

.bbox-mature {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.bbox-immature {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.bbox-label {
    position: absolute;
    bottom: 100%;
    left: -2px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 2px 2px 0 0;
    color: #ffffff;
    white-space: nowrap;
}

.bbox-mature .bbox-label { background: #ef4444; }
.bbox-immature .bbox-label { background: #22c55e; }

/* --------------------------------------------------------------------------
   2. 社内AI・RAGチャットUIモック (仕様書第20項: マニュアル引用)
   -------------------------------------------------------------------------- */
.chat-mock-container {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 480px;
}

.chat-mock-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-assistant-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
}

.chat-bot-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-bg-navy);
}

.chat-status-pill {
    font-size: 0.6875rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-messages-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #f8fafc;
}

.chat-bubble {
    max-width: 85%;
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    font-size: 0.875rem;
    line-height: 1.6;
    position: relative;
}

.chat-user-message {
    align-self: flex-end;
    background: var(--color-primary);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-bot-message {
    align-self: flex-start;
    background: #ffffff;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    border-bottom-left-radius: 2px;
}

.chat-rag-citation {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

.citation-badge {
    background: #16a34a;
    color: #ffffff;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 0.6875rem;
}

.chat-input-bar {
    padding: 14px 20px;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-fake-input {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.8125rem;
    color: var(--color-text-subtle);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* --------------------------------------------------------------------------
   3. 業務管理ダッシュボードUIモック (仕様書第24項: 売上/予約/顧客/タスク)
   -------------------------------------------------------------------------- */
.dashboard-mock-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: #0f172a;
    color: #ffffff;
    min-height: 480px;
}

.dash-sidebar {
    background: #0a0f1d;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-nav-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-nav-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-left: 3px solid #3b82f6;
}

.dash-main-area {
    padding: 24px;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.kpi-stat-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.kpi-label {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.kpi-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono);
}

.kpi-trend {
    font-size: 0.6875rem;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.dash-content-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.dash-widget {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
}

.dash-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #e2e8f0;
}

.dash-chart-mock {
    height: 140px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-top: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-bar-col {
    flex: 1;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 3px 3px 0 0;
    position: relative;
    transition: var(--transition-base);
}

.chart-bar-col:hover {
    background: #60a5fa;
}

.dash-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-task-item {
    font-size: 0.75rem;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-status-tag {
    font-size: 0.625rem;
    padding: 2px 6px;
    border-radius: 2px;
}

.status-active { background: #065f46; color: #6ee7b7; }
.status-pending { background: #854d0e; color: #fde047; }

/* --------------------------------------------------------------------------
   4. 農業AI スマホUIモック (仕様書第26項: 5ステップ)
   -------------------------------------------------------------------------- */
.phone-mock-frame {
    width: 340px;
    max-width: 100%;
    margin: 0 auto;
    background: #0f172a;
    border: 8px solid #334155;
    border-radius: 40px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
}

.phone-notch-bar {
    height: 24px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notch-camera-dot {
    width: 10px;
    height: 10px;
    background: #1e293b;
    border-radius: 50%;
}

.phone-screen-content {
    background: #f8fafc;
    min-height: 540px;
    display: flex;
    flex-direction: column;
}

.agri-app-header {
    background: var(--color-bg-navy);
    color: #ffffff;
    padding: 14px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agri-step-stepper {
    display: flex;
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    gap: 4px;
}

.agri-step-pill {
    flex: 1;
    font-size: 0.625rem;
    font-weight: 700;
    text-align: center;
    padding: 4px 0;
    border-radius: 2px;
    background: #f1f5f9;
    color: #64748b;
}

.agri-step-pill.active {
    background: #d1fae5;
    color: #065f46;
}

.agri-app-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agri-photo-preview {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.agri-ai-result-box {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

.agri-result-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.agri-candidate-item {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed var(--color-border);
}

.agri-notice-text {
    font-size: 0.6875rem;
    color: #64748b;
    line-height: 1.5;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   5. レスポンシブ調整
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .dashboard-mock-grid {
        grid-template-columns: 1fr;
    }
    .dash-sidebar {
        display: none;
    }
    .dash-kpi-row {
        grid-template-columns: 1fr 1fr;
    }
    .dash-content-split {
        grid-template-columns: 1fr;
    }
    .phone-mock-frame {
        width: 100%;
    }
}
