/**
 * 家計簿アプリ 共通スタイル
 * 
 * ファイル名: css/style.css
 * 作成日: 2026年1月10日
 * Bootstrap 5を使用しているため、最小限のカスタムスタイルのみ
 */

/* ========================================
   共通スタイル
   ======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.container-fluid {
    max-width: 1400px;
}

/* ========================================
   ヘッダー
   ======================================== */

.navbar-brand {
    font-weight: 600;
}

/* ========================================
   カード
   ======================================== */

.dashboard-card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ========================================
   ボタン
   ======================================== */

.btn {
    border-radius: 6px;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* ========================================
   フォーム
   ======================================== */

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ========================================
   テーブル
   ======================================== */

.table {
    background-color: white;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

/* ========================================
   アラート
   ======================================== */

.alert {
    border-radius: 8px;
    border-left-width: 4px;
}

/* ========================================
   モーダル
   ======================================== */

.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #f8f9fa;
}

/* ========================================
   ログインページ
   ======================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    max-width: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* ========================================
   レシート入力フォーム
   ======================================== */

.receipt-form {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.required-mark {
    color: #dc3545;
    font-weight: bold;
}

/* ========================================
   ローディング
   ======================================== */

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ========================================
   レスポンシブ
   ======================================== */

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 6px;
        margin-bottom: 5px;
    }
    
    .table {
        font-size: 14px;
    }
}

/* ========================================
   ユーティリティ
   ======================================== */

.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.border-radius-8 {
    border-radius: 8px;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cursor-pointer {
    cursor: pointer;
}
