/* R2 Storage 뷰 스타일 */
.r2-storage-view {
    padding: 20px;
}

.r2-storage-view .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.r2-storage-view .view-header h2 {
    margin: 0;
    color: #333;
}

.r2-storage-view .header-actions {
    display: flex;
    gap: 10px;
}

/* 스토리지 통계 */
.storage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.storage-stats .stat-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.storage-stats .stat-icon {
    font-size: 32px;
}

.storage-stats .stat-content {
    flex: 1;
}

.storage-stats .stat-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
}

.storage-stats .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #0054e3;
}

/* 탭 */
.storage-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
}

.storage-tabs .tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s;
}

.storage-tabs .tab-btn:hover {
    color: #0054e3;
    background: #f8f9fa;
}

.storage-tabs .tab-btn.active {
    color: #0054e3;
    border-bottom-color: #0054e3;
}

/* 탭 콘텐츠 */
.tab-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 개요 그리드 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.overview-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.overview-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.overview-card p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.overview-card .cleanup-list {
    margin: 10px 0;
    padding-left: 20px;
}

.overview-card .cleanup-list li {
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.status-result, .report-result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.status-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.report-summary h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.report-summary ul {
    margin: 0;
    padding-left: 20px;
}

.report-summary li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* 파일 테이블 */
.search-box {
    margin-bottom: 15px;
}

.search-box .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.files-table-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
}

.files-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.files-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
}

.files-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

.files-table tbody tr:hover {
    background: #f8f9fa;
}

/* 상태 배지 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 패널 헤더 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.info-text {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* 로딩 */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* Empty 메시지 */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 14px;
}
