/* ファイル管理サーバー 管理画面CSS */

/* レイアウト */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 250px;
    min-height: 100vh;
    flex-shrink: 0;
}
.main-content {
    flex: 1;
    min-width: 0;
}

/* サイドバー */
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}
.sidebar-nav a:hover {
    background-color: #334155;
    color: #f1f5f9;
}
.sidebar-nav a.active {
    background-color: #1e293b;
    color: #38bdf8;
    border-left-color: #38bdf8;
}

/* カード */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

/* テーブル */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}
.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}
.data-table tbody tr:hover {
    background-color: #f8fafc;
}

/* ステータスバッジ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-error   { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-gray    { background: #f1f5f9; color: #475569; }

/* ステータスドット */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-dot.active   { background: #22c55e; }
.status-dot.error    { background: #ef4444; }
.status-dot.disabled { background: #94a3b8; }

/* フォーム */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}
.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
.form-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    text-decoration: none;
}
.btn-primary {
    background: #3b82f6;
    color: white;
}
.btn-primary:hover { background: #2563eb; }
.btn-secondary {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}
.btn-secondary:hover { background: #f9fafb; }
.btn-danger {
    background: #ef4444;
    color: white;
}
.btn-danger:hover { background: #dc2626; }
.btn-success {
    background: #22c55e;
    color: white;
}
.btn-success:hover { background: #16a34a; }
.btn-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
}

/* アラート */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fed7aa; color: #92400e; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* パンくず */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}
.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .separator { color: #9ca3af; }

/* 容量バー */
.capacity-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.capacity-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

/* ログビュワー */
.log-viewer {
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}
.log-viewer .log-info    { color: #38bdf8; }
.log-viewer .log-warning { color: #fbbf24; }
.log-viewer .log-error   { color: #f87171; }

/* 確認モーダル */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 50;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
