/**
 * Console2 Dashboard CSS
 * ダッシュボード画面専用のスタイル
 */

/* ========================================
   統計グリッド
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ========================================
   統計カード
   ======================================== */
.stat-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(81, 187, 155, 0.3);
    transform: translateY(-2px);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.likes {
    background: rgba(81, 187, 155, 0.1);
    color: var(--accent-primary);
}

.stat-icon.week {
    background: rgba(137, 235, 205, 0.2);
    color: var(--accent-dark);
}

.stat-icon.messages {
    background: rgba(204, 87, 89, 0.1);
    color: var(--warning-primary);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ========================================
   テーブルカードヘッダー
   ======================================== */
.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-card-title i {
    color: var(--accent-primary);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ========================================
   フォームコントロール
   ======================================== */
.form-control {
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    padding: 0.625rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(81, 187, 155, 0.1);
}

.form-control:hover {
    border-color: var(--accent-light);
}

/* ========================================
   データテーブル
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.data-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9375rem;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-title {
    font-weight: 500;
    color: var(--text-primary);
}

.table-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.table-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.table-actions-cell {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   レスポンシブ（ダッシュボード用）
   ======================================== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-actions {
        width: 100%;
    }

    .table-actions .form-control {
        flex: 1;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody tr {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: none;
    }

    .data-table tbody td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--text-secondary);
    }
}
