/* 시스템 설정 스타일 */
.system-settings-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e1e1;
}

.settings-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.settings-actions {
    display: flex;
    gap: 10px;
}

/* 설정 네비게이션 */
.settings-nav {
    float: left;
    width: 200px;
    margin-right: 30px;
}

.settings-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.settings-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-menu-item:last-child {
    border-bottom: none;
}

.settings-menu-item:hover {
    background: #f5f5f5;
}

.settings-menu-item.active {
    background: #0078d4;
    color: white;
}

/* 설정 컨텐츠 */
.settings-content {
    margin-left: 230px;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    min-height: 500px;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.settings-section h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
}

/* 설정 그룹 */
.setting-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.setting-group h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #555;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* 토글 스위치 */
.toggle-switch {
    display: inline-block;
    margin: 10px 0;
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: block;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch-handle {
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-label {
    background: #0078d4;
}

.toggle-input:checked + .toggle-label .toggle-switch-handle {
    transform: translateX(24px);
}

/* 시스템 정보 */
.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 15px;
}

.info-card h4 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 8px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 500;
    color: #333;
}

.status-online {
    color: #4caf50;
}

.status-offline {
    color: #f44336;
}

/* 스토리지 바 */
.storage-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.storage-progress {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.3s;
}

/* 백업 테이블 */
.backup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.backup-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.backup-table th,
.backup-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.backup-table tbody tr:hover {
    background: #f9f9f9;
}

/* 시스템 액션 버튼 */
.system-actions,
.backup-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* 반응형 */
@media (max-width: 768px) {
    .settings-nav {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .settings-content {
        margin-left: 0;
    }
    
    .system-info-grid {
        grid-template-columns: 1fr;
    }
}

/* 변경 사항 표시 */
.has-changes {
    border-color: #ff9800 !important;
}

.has-changes:focus {
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2) !important;
}

.text-center {
    text-align: center;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}
