/* ===== Dashboard Styles ===== */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

#dashboard-view .dashboard-header {
    margin-bottom: 40px;
}

#dashboard-view .dashboard-header h1 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

#dashboard-view .dashboard-header .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* サマリーカード */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.summary-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
}

.summary-card.income::before {
    background: linear-gradient(90deg, var(--primary), var(--success));
}

.summary-card.expense::before {
    background: linear-gradient(90deg, #E8C9A0, var(--warning));
}

.summary-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.summary-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm);
}

.summary-card-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    font-family: 'Outfit', sans-serif;
}

.summary-card.income .summary-card-value {
    color: var(--success);
}

.summary-card.expense .summary-card-value {
    color: var(--warning);
}

/* カレンダーセクション */
.calendar-section {
    background: white;
    border-radius: 30px;
    padding: 35px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-header h2 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.calendar-controls button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.calendar-controls button:hover {
    background: var(--bg-warm);
    border-color: var(--primary-light);
}

.calendar-month {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

/* カレンダーグリッド */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day-name {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 10px;
}

.calendar-day {
    min-height: 90px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 8px 8px 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.calendar-day:hover {
    background: var(--bg-warm);
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.calendar-day.today {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    font-weight: 900;
}

.calendar-day.has-data {
    border-color: var(--primary-dark);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-day-number {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-day-expense {
    font-size: 0.7rem;
    color: var(--danger);
    margin-top: 2px;
    font-weight: 600;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-day-income {
    font-size: 0.7rem;
    color: var(--success);
    margin-top: 2px;
    font-weight: 600;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* クイックアクション */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-action-btn {
    background: white;
    border: 2px solid var(--border);
    border-radius: 25px;
    padding: 20px 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-dark);
}

.quick-action-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}
