/* 売上管理システム カスタムスタイル */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans JP', sans-serif;
    background-color: #f8f9fa;
}

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

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.form-control, .form-select {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: #495057;
    color: white;
    border: none;
    font-weight: 600;
}

.table td {
    border-color: #e9ecef;
    vertical-align: middle;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
}

.search-form {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.75rem;
}

.stats-card .card-body {
    padding: 1.5rem;
}

.alert {
    border-radius: 0.5rem;
    border: none;
}

.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

.badge {
    font-weight: 500;
}

/* ローディングスピナー */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* レスポンシブテーブル */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* カスタムスクロールバー */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ファイルアップロード */
.file-upload {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.15s ease-in-out;
}

.file-upload:hover {
    border-color: #0d6efd;
}

.file-upload.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #212529;
        color: #f8f9fa;
    }

    .card {
        background-color: #343a40;
        color: #f8f9fa;
    }

    .search-form {
        background-color: #343a40;
    }
}