/* 기본 스타일 - 심플한 디자인 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* 컨테이너 */
.go_content {
    background: white;
    margin: 0;
    padding: 0;
}

/* 헤더 */
.content_top {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 30px;
    background: white;
}

.works_tit h1 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.works_tit_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.btn_wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

/* 메인 컨텐츠 */
.content_page {
    padding: 20px 30px;
    background: white;
}

/* 테이블 */
.grid_view {
    background: white;
}

.data-table-container {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.rg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rg-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.rg-header-cell {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #e0e0e0;
    white-space: nowrap;
}

.rg-header-cell:last-child {
    border-right: none;
}

.rg-data-row {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.rg-data-row:hover {
    background: #f8f9fa;
}

.rg-data-row:last-child {
    border-bottom: none;
}

.rg-data-cell {
    padding: 10px 8px;
    border-right: 1px solid #e0e0e0;
    color: #333;
    vertical-align: top;
}

.rg-data-cell:last-child {
    border-right: none;
}

.rg-data-cell:first-child {
    text-align: center;
    font-weight: 600;
    color: #333;
}

.subject {
    font-weight: 500;
}

.left-column {
    text-align: left;
}

.item_wrap {
    max-width: 200px;
    word-wrap: break-word;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
    color: #666;
}

.btn-refresh {
    display: inline-block;
    padding: 10px 20px;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    border: 2px solid #000000;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #ffffff;
    color: #000000;
}

/* 로그인 페이지 */
.login-page {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    margin-bottom: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: #000000;
    color: white;
    width: 100%;
    border: 2px solid #000000;
}

.btn-primary:hover {
    background: #ffffff;
    color: #000000;
}

/* 로딩 스피너 */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: none; /* 전환 효과 제거로 즉시 표시 */
}

.loading.show {
    display: flex !important;
    opacity: 1 !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-left: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 12px;
}

/* 알림 */
.alert {
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* 반응형 */
@media (max-width: 768px) {
    .content_page {
        padding: 15px;
    }
    
    .works_tit h1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .works_tit_inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .data-table-container {
        overflow-x: auto;
    }
    
    .rg-table {
        min-width: 1000px;
    }
    
    .login-container {
        margin: 10px;
        padding: 30px 20px;
    }
}