/* =============================================================================
   🟦 WORKSPACE SERVICE STYLES - Workspaceサービス（コックピット/ダッシュボード）専用スタイル
   ============================================================================= */

/* 🔧🔧🔧 【コックピットトップセクション】workflow-top-sectionと同じ設定 🔧🔧🔧 */
.cockpit-top-section {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;  /* workflow-layoutと同じ */
}

/* 🔧🔧🔧 【根本解決】service-detail-contentの基本設定を上書き - PC版のみ */
@media (min-width: 481px) {
    .service-workspace .service-detail-content.cockpit-layout {
        display: flex !important;
        flex-direction: column !important;  /* 縦並びに変更 */
        align-items: stretch !important;    /* center → stretch に変更 */
        justify-content: flex-start !important; /* center → flex-start に変更 */
        gap: 60px !important;              /* 80px → 60px に変更 */
        width: 100% !important;
        max-width: none !important;        /* 1200px制限を解除 */
        margin: 0 !important;
        padding: 0 60px !important;        /* 🔧 20px → 60px に変更（統一的な余白を確保） */
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
    }
}

/* 🔧🔧🔧 【カクつき根絶】コックピットセクションの右側エリアアニメーション */
.cockpit-top-section .service-detail-right.visible {
    opacity: 1;
    transform: translateY(0);  /* 🚨 X軸→Y軸に統一（子要素と同方向） */
    /* 🚨 アニメーション削除 - 子要素のfeature-cardのみアニメーション */
}

/* タイトル（workflow-layoutと同じ） - PC版のみ */
.cockpit-top-section .service-detail-title-desktop {
    flex: 0 0 100%;
    order: 1;
}

/* メッセージエリア（workflow-layoutと同じ） */
.cockpit-top-section .service-detail-message {
    flex: 0 0 42%;  /* workflow-layoutと同じ42% */
    order: 2;
    align-self: flex-start;
    margin-top: 0;
}

/* 🔧🔧🔧 【交通整理】ダッシュボードエリア - Y軸統一で子要素と同方向 */
.cockpit-top-section .service-detail-right {
    flex: 0 0 55%;  /* workflow-layoutと同じ55% */
    order: 3;
    align-self: flex-start;
    margin-top: 0;
    opacity: 0;
    transform: translateY(20px);  /* 🚨 X軸→Y軸に統一（子要素と同方向） */
    transition: all 1.2s ease-out;
}

/* 🔧🔧🔧 【メインモニター】中央の主要表示画面 🔧🔧🔧 */
.main-monitor {
    position: relative;
    width: 380px;
    height: 250px;
    background: linear-gradient(145deg, #1a2332 0%, #2d3748 100%);
    border-radius: 12px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(78, 205, 196, 0.2);
    overflow: hidden;
    transform: scale(0.95);
    transition: all 0.8s ease-out;
}

.main-monitor.monitor-active {
    transform: scale(1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(78, 205, 196, 0.4);
}

.monitor-screen {
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

/* 🔧🔧🔧 【ダッシュボードヘッダー】Google Workspaceロゴ + LIVEインジケーター 🔧🔧🔧 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.google-workspace-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 🔧 【超極小】Workspaceロゴアイコン */
.workspace-logo-icon {
    width: 12px;             /* 🔧 16px → 12px アイコンサイズを超極小に */
    height: 12px;            /* 🔧 16px → 12px アイコンサイズを超極小に */
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

.workspace-logo-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-g {
    font-size: 10px;         /* 🔧 14px → 10px ロゴ文字サイズを超極小に */
    font-weight: bold;
    color: #4285f4;
    text-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.realtime-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4ecdcc;
    font-weight: bold;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ecdcc;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 🔧 【超極小】ダッシュボードチャート */
.dashboard-charts {
    display: flex;
    gap: 3px !important;     /* 🔧 8px → 3px チャート間隔を超極小に + 強制適用 */
    flex: 1;
}

.chart-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px !important;     /* 🔧 3px → 1px チャート内間隔を超極小に + 強制適用 */
}

.chart-title {
    font-size: 6px;          /* 🔧 8px → 6px チャートタイトル文字サイズを超極小に */
    color: #a0aec0;
    text-align: center;
}

/* 🔧 【超極小】売上チャート（バーグラフ） */
.chart-bar-container {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 1px !important;     /* 🔧 3px → 1px バー間隔を超極小に + 強制適用 */
    height: 25px !important; /* 🔧 50px → 25px チャート高さを半分に + 強制適用 */
}

.chart-bar {
    width: 4px;              /* 🔧 8px → 4px バーの幅を超極小に */
    height: var(--height);
    background: linear-gradient(to top, #4ecdcc 0%, #72efdd 100%);
    border-radius: 8px 8px 0 0;
    animation: barGrow 2s ease-out;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.4);
}

/* 🔧 【超極小】プロジェクト進捗（円グラフ） */
.progress-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px !important; /* 🔧 50px → 25px 高さを半分に + 強制適用 */
}

.progress-circle {
    position: relative;
    width: 20px !important;  /* 🔧 40px → 20px 円のサイズを半分に + 強制適用 */
    height: 20px !important; /* 🔧 40px → 20px 円のサイズを半分に + 強制適用 */
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4ecdcc 0deg, #4ecdcc calc(var(--progress) * 3.6deg), transparent calc(var(--progress) * 3.6deg));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: progressSpin 2s ease-out;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 15px !important;  /* 🔧 30px → 15px 内側の円を半分に + 強制適用 */
    height: 15px !important; /* 🔧 30px → 15px 内側の円を半分に + 強制適用 */
    background: #2d3748;
    border-radius: 50%;
}

.progress-text {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 6px;          /* 🔧 10px → 6px 文字サイズを超極小に */
    font-weight: bold;
}

/* 🔧🔧🔧 【コックピットウィジェット】周囲のメーター群 🔧🔧🔧 */
.cockpit-widgets {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.widget-item {
    position: absolute;
    width: 180px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    animation: widgetAppear 1s ease-out forwards;
}

.widget-item:nth-child(1) { top: 10%; left: 5%; animation-delay: 0.5s; }
.widget-item:nth-child(2) { top: 10%; right: 5%; animation-delay: 0.7s; }
.widget-item:nth-child(3) { top: 50%; left: -5%; animation-delay: 0.9s; }
.widget-item:nth-child(4) { top: 50%; right: -5%; animation-delay: 1.1s; }
.widget-item:nth-child(5) { bottom: 10%; left: 5%; animation-delay: 1.3s; }
.widget-item:nth-child(6) { bottom: 10%; right: 5%; animation-delay: 1.5s; }

.widget-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* 🔧🔧🔧 【Googleサービスアイコン】画像ロゴの統一サイズ調整 🔧🔧🔧 */
.widget-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.widget-icon img:hover {
    filter: brightness(1.4) contrast(1.2);
    transform: scale(1.1);
}

/* 絵文字フォールバック */
.emoji-fallback {
    font-size: 20px;
    line-height: 1;
}

.widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.widget-title {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 600;
}

.widget-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.widget-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-status.active {
    background: #4ecdcc;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.6);
    animation: statusBlink 2s ease-in-out infinite;
}

.widget-status.syncing {
    background: #fbb040;
    animation: statusSync 1s linear infinite;
}

/* カウントアニメーション */
.count-animation {
    color: #4ecdcc;
    font-weight: bold;
    animation: countGlow 2s ease-in-out infinite alternate;
}

.next-meeting {
    color: #72efdd;
    font-weight: 500;
}

/* 🔧🔧🔧 【コックピット専用タイトル】PC版のみ - workflow-layoutと統一 🔧🔧🔧 */
.cockpit-layout .service-detail-title-desktop {
    display: block !important;
    width: 100% !important;
    min-width: 100%;
    box-sizing: border-box;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(78, 205, 196, 0.8);
    line-height: 1.3;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cockpit-layout .service-detail-title-desktop.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-detail-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* サービス別の色分け（Workspace） - PC版のみ */
.service-workspace .service-detail-title-desktop {
    color: rgba(123, 185, 255, 0.934);
}

/* 🚨🚨🚨 【重複削除】feature-card:hoverはcomponents.cssで一元管理 */
/* .service-workspace .feature-card:hover は削除 - components.cssに統一 */ 