* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 터치 최적화 */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    /* 터치 최적화 */
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 사용자 정보 바 */
.user-info-bar {
    background-color: white;
    border-radius: 10px;
    padding: 15px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#userGreeting {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

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

.user-btn {
    padding: 8px 20px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.user-btn:hover {
    background-color: #5568d3;
}

.user-name {
    padding: 8px 15px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

.admin-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.admin-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* 메인 버튼 테이블 */
.main-buttons-table {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-buttons-table h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 10px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.menu-btn {
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* 터치 최적화 */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    min-height: 60px;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.menu-btn:active {
    transform: translateY(0);
}

/* 메인 포탈 그리드 */
.main-portal-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* 포탈 버튼 스타일 */
.portal-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 150px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portal-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.portal-icon {
    font-size: 3rem;
}

.portal-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.portal-desc {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* 지역포탈 강조 버튼 제거 (이제 모두 동일) */
.menu-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 18px;
}

.menu-highlight:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
}
/* 정보 테이블 */
.info-table {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-table h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    border-bottom: 3px solid #2196F3;
    padding-bottom: 10px;
}

.table-content {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f8f9fa;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    color: #555;
    border-bottom: 2px solid #dee2e6;
}

td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    color: #666;
}

tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-buttons-table,
    .info-table {
        padding: 20px;
    }
    
    .menu-btn {
        padding: 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .button-grid {
        grid-template-columns: 1fr;
    }
}
