/* 🚀 共通：ローディングオーバーレイ（画面全体の薄暗い背景） */
.loading-overlay {
    display: none;      /* JavaScript (gallery-utils.js) から 'flex' に切り替え */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* 少し暗めにして中央の白を引き立てる */
    z-index: 3000;      /* 他の要素よりも確実に前面へ */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px); /* 背景をわずかにぼかして集中させる */
}

/* 🚀 中央のクルクル（白ベース + 緑のアクセント） */
.spinner {
    width: 60px;        /* 少し大きめにして視認性をアップ */
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2); /* 全体の輪郭（薄い白） */
    border-top: 6px solid #28a745;             /* 動く部分（白ベースに映える緑） */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);   /* クルクル自体に少し影を付ける */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🚀 クルクル直下のテキスト */
.loading-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 文字の可読性を確保 */
}

/* 🚀 共通：スケルトン（読み込み中のグレーボックス） */
.skeleton {
    animation: pulse 1.5s infinite;
    background: #e0e0e0;
    border-radius: 4px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 🚀 共通：削除ボタンのデザイン（Images/Videos共通） */
.btn-del {
    background: linear-gradient(135deg, #ff6b6b, #ee5253) !important;
    color: #fff !important;
    border: none;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(238, 82, 83, 0.3);
    transition: transform 0.1s ease, opacity 0.2s;
}

.btn-del:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* 無効化（削除中など）の状態 */
.btn-del:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- 🚀 スクロール読み込み(Images/Videos共通)用を新設 --- */
.bottom-loader-container {
    display: none; /* JSで制御 */
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

/* 削除用より一回り小さく、インラインに馴染むスタイル */
.spinner-s {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #28a745; /* 統一感のため色は合わせる */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

.loader-text {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    vertical-align: middle;
}
