/* 日報カード - Twitter Card 横長レイアウト */
.daily-report-card {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 2 / 1;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    position: relative;
}

/* 左パネル（円形グラフエリア） */
.report-left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 右パネル（統計情報エリア） */
.report-right-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ヘッダー */
.report-header {
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-date {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.report-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.report-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
}

.report-avatar {
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.report-username {
    font-weight: 600;
}

/* 円形グラフエリア */
.circular-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.circular-rings {
    position: relative;
    width: 220px;
    height: 220px;
}

/* 円形リング（擬似要素で実装） */
.ring-background {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #f1f5f9;
}

.ring-work {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(#f59e0b 0deg, #f59e0b var(--work-deg), transparent var(--work-deg));
}

.ring-focus {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: #ffffff;
}

.ring-focus-fill {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 0deg, #3b82f6 var(--focus-deg), transparent var(--focus-deg));
}

.ring-inner {
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    background: #ffffff;
}

/* 中央の時間表示 */
.circle-center-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.center-time-value {
    font-size: 48px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
    letter-spacing: -0.02em;
}

.center-time-colon {
    color: #94a3b8;
}

.center-time-unit {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: 0.05em;
}

/* WORK/FOCUS統計 */
.work-focus-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 60px;
}

.stat-item {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item.work {
    border-left: 3px solid #f59e0b;
}

.stat-item.focus {
    border-left: 3px solid #3b82f6;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.stat-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.stat-percent {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* サブ情報カード */
.info-cards {
    display: flex;
    gap: 6px;
}

.info-card {
    flex: 1;
    padding: 8px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.info-card-icon {
    font-size: 16px;
    line-height: 1;
}

.info-card-value {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.info-card-label {
    font-size: 9px;
    color: #64748b;
    font-weight: 600;
}

/* セクション */
.report-section {
    margin: 8px 0 0;
}

.report-section-title {
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* プロジェクト・タイムラインを非表示（横長レイアウトでは省略） */
.report-section.compact-hide {
    display: none;
}

/* プロジェクト */
.report-project-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-project-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-project-info {
    width: 70px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-project-bar-bg {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.report-project-bar-fill {
    height: 100%;
    border-radius: 3px;
}

.report-project-time {
    width: 50px;
    text-align: right;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

/* タイムライン */
.report-timeline {
    display: flex;
    gap: 3px;
    height: 48px;
    align-items: flex-end;
    padding: 8px 0;
}

.report-timeline-hour {
    flex: 1;
    background: #e2e8f0;
    border-radius: 3px;
    min-width: 6px;
}

.report-timeline-hour.active {
    background: #93c5fd;
}

.report-timeline-hour.active-high {
    background: #3b82f6;
}

/* ハイライトバッジ */
.report-highlights-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 8px;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.badge-icon {
    font-size: 14px;
    line-height: 1;
}

.badge-text {
    line-height: 1;
}

/* バッジカラー */
.highlight-badge.excellent {
    background: #fef3c7;
    color: #78350f;
}

.highlight-badge.good {
    background: #dbeafe;
    color: #1e40af;
}

.highlight-badge.start {
    background: #d1fae5;
    color: #065f46;
}

.highlight-badge.streak-high {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #7c2d12;
}

.highlight-badge.streak {
    background: #fecaca;
    color: #7f1d1d;
}

.highlight-badge.sessions {
    background: #e9d5ff;
    color: #581c87;
}

/* フッター */
.report-footer {
    display: none;
}

/* 日報ボタンのバッジ */
.report-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* モバイル対応 */
@media (max-width: 640px) {
    .daily-report-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .circular-rings {
        width: 200px;
        height: 200px;
    }

    .center-time-value {
        font-size: 48px;
    }

    .work-focus-stats {
        flex-direction: column;
        gap: 12px;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .report-badge {
        font-size: 8px;
        padding: 2px 5px;
        top: -5px;
        right: -5px;
    }
}
