/* Fashion Manager - Custom CSS */

/* カードグリッド（2列） */
.item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.item-card {
    display: block;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: inherit;
    transition: box-shadow 0.2s;
}

.item-card:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.item-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.item-card-body {
    padding: 0.5rem;
}

.item-card-name {
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-card-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

/* FAB */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

/* フィルタエリア */
.filter-area {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

/* 詳細画面の写真 */
.detail-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

/* 写真プレビュー（登録/編集） */
.photo-preview {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #e9ecef;
    border-radius: 0.5rem;
}

/* 設定画面リスト */
.master-list .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* キャンセルリンク */
.cancel-link {
    text-decoration: none;
}

/* フォームテーブル */
.table th {
    color: #6c757d;
    font-weight: normal;
    font-size: 0.9rem;
}

.table td {
    font-size: 0.9rem;
}

/* ローディング */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* もっと見るボタン */
#loadMoreBtn {
    min-width: 200px;
}

/* レスポンシブ微調整 */
@media (min-width: 576px) {
    .item-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .item-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
