/* Tailwindを使用した管理UIの追加スタイル */

/* セクションの表示/非表示 - Tailwindクラスを使用 */
.admin-section {
    display: none !important;
}

.admin-section.active {
    display: block !important;
}

/* ナビゲーションアクティブ状態 */
.nav-item.active {
    background-color: #2563eb !important;
    color: white !important;
}

/* テーブルスタイル */
.admin-table {
    width: 100%;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.admin-table th {
    padding: 0.75rem 1.5rem;
    background-color: #f9fafb;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table tbody tr:hover {
    background-color: #f9fafb;
}

/* ローディングスピナー */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0;
}

.spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #d1d5db;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ステータスバッジ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.ready {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.processing {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.uploading {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* 機能注記 */
.feature-note {
    color: #4b5563;
    text-align: center;
    padding: 2rem 0;
}

/* グラフプレースホルダー */
.placeholder-chart {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
}

.chart-placeholder {
    text-align: center;
    color: #6b7280;
}

.chart-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    display: block;
}

/* 設定グリッド */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-group h4 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.setting-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    min-width: 8rem;
}

.setting-item input,
.setting-item select {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.15s ease-in-out;
}

.setting-item input:focus,
.setting-item select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.setting-item button {
    padding: 0.5rem 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease-in-out;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.setting-item button:hover {
    background-color: #e5e7eb;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 16rem;
    }

    .flex-1.ml-72 {
        margin-left: 16rem;
    }
}

@media (max-width: 640px) {
    .admin-sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .flex-1.ml-72 {
        margin-left: 0;
    }
}