/* 클라우드 모달 전용 스타일링 */
#cloudModal .modal-content2 {
    background-color: #ffffff;
    color: #333;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: none;
}

#cloudModal h2 {
    margin-top: 0;
    color: #0080ff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
#cloudModal h9 {
    margin-top: 0px;
    margin-bottom: 24px;
    color: #cacaca;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* 업로드 섹션 카드 스타일 */
.cl-upload-card {
    background: #f8f9fa;
    border: 1px; 
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.cl-upload-group {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto auto;
    gap: 15px;
    align-items: center;
}

.cl-input {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;

}

/* 탭 메뉴 개선 */
.cl-tab-container {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 15px;
}

.cl-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    transition: all 0.2s;
}

.cl-tab.active {
    color: #0066ff;
}

.cl-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0066ff;
}

/* 테이블 시인성 강화 */
.cl-table-wrapper {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.cl-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 🔥 추가 */
}

.cl-table th {
    background: #f1f3f5;
    color: #495057;
    font-weight: 600;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid #dee2e6;
}

.cl-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
}

.cl-table tr:hover {
    background-color: #f8f9ff;
}
table {
    table-layout: fixed;
    width: 100%;
}

th:nth-child(3),
td:nth-child(3) {
    width: 110px;
    text-align: center;
    white-space: nowrap;
}

th:nth-child(4),
td:nth-child(4) {
    width: 90px;
    text-align: center;
}

td:nth-child(3),
td:nth-child(4) {
    padding: 4px 6px;
}
/* 버튼 스타일링 */
.cl-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: filter 0.2s;
}

.cl-btn-primary { background: #0066ff; color: white; }
.cl-btn-download { background: #e7f0ff; color: #0066ff; }
.cl-btn-delete { background: #fff0f0; color: #ff4d4d; }

.cl-btn:hover { filter: brightness(0.9); }
/* 1. 클라우드 모달 전체 너비 확장 */
#cloudModal .modal-content2 {
    max-width: 900px !important; /* common.css의 420px 우회 */
    width: 90% !important;
    background-color: #1e1e1e !important; /* 배경을 조금 더 깊게 */
}

/* 2. 업로드 바 레이아웃 교정 */
#cloudModal .cl-upload-card {
    background: #2a2a2a !important;
    padding: 15px !important;
    border-radius: 8px !important;
    border: 1px solid #444 !important;
    margin-bottom: 20px !important;
}

#cloudModal .cl-upload-group {
    display: flex !important; /* 강제 flex 적용 */
    flex-wrap: nowrap !important;
    gap: 10px !important;
    align-items: center !important;
}

/* common.css의 block 속성 해제 */
#cloudModal .cl-upload-group label {
    display: inline-flex !important; 
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 13px !important;
}

#cloudModal .cl-upload-group input[type="text"],
#cloudModal .cl-upload-group input[type="file"] {
    width: auto !important; /* 100% 해제 */
    flex: 1 !important;     /* 남은 공간 차지 */
    margin-bottom: 0 !important;
    background-color: #333 !important;
}

/* 3. 버튼 크기 최적화 (100% 방지) */
#cloudModal .cl-btn, 
#cloudModal .cl-tab,
#cloudModal .cl-upload-group button {
    width: auto !important; 
    padding: 8px 15px !important;
    margin-top: 0 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

/* 4. 탭 디자인 시인성 강화 */
.cl-tab-container {
    border-bottom: 1px solid #444 !important;
}

.cl-tab {
    color: #888 !important;
    border-bottom: 3px solid transparent !important;
}

.cl-tab.active {
    color: #87CEFA !important;
    border-bottom: 3px solid #87CEFA !important;
}

/* 5. 테이블 가독성 (어두운 테마용) */
.cl-table th {
    background: #004080 !important; /* 짙은 파랑 */
    color: #fff !important;
    border-bottom: 2px solid #87CEFA !important;
}

.cl-table tr:hover {
    background: #333 !important;
}

.cl-table td {
    border-bottom: 1px solid #444 !important;
}

        .modal-content2 { background-color: #2c2c2c; color: white; padding: 25px; border-radius: 10px; width: 90%; max-width: 420px; text-align: left; box-shadow: 0 5px 15px rgba(0,0,0,0.5);border: 1px solid #87CEFA;box-shadow: 0 0 20px rgba(135, 206, 250, 0.5); }
        .modal-content2 h2 { margin-top:0; color: #87CEFA; }
        .modal-content2 label { display: block; margin-top: 10px; margin-bottom: 5px; font-size:0.9em; }
        .modal-content2 input { padding: 10px; margin-bottom: 12px; border-radius: 5px; border: 1px solid #555; background-color: #333; color:white; }
        .modal-content2 button { width: 100%; padding: 12px; margin-top:15px; border-radius:5px; background-color: #007bff; color:white; border:none; cursor:pointer; }
        .modal-content2 button:hover { background-color: #0056b3; }
/*스위치 스타일 부분*/
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: #00c853;
}

input:checked + .slider:before {
    transform: translateX(26px);
}        
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    bottom: 50px;
}
table {
    table-layout: fixed;
    width: 100%;
}
td:nth-child(2) {
    white-space: normal;       /* 줄바꿈 허용 */
    word-break: break-all;     /* 긴 영어/파일명 강제 줄바꿈 */
    overflow-wrap: break-word; /* 최신 브라우저 대응 */
}