#incomingRequestModal .modal-content {
    background: linear-gradient(145deg, #4a4a4a, #2c2c2c);
    border: 2px solid #f1c40f;
}
#incomingRequestModal h2 {
    color: #f1c40f;
}

        /* 모든 CSS 스타일은 여기에 통합됩니다. */
    body { 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
            display: flex; 
            flex-direction: column;
            align-items: center; 
            justify-content: flex-start; /* ◀ 'center'를 'flex-start' (상단 정렬)로 변경 */
            min-height: 100vh;
            margin: 0; 
            padding: 20px; 
            box-sizing: border-box;
            background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), url('images/backbord.jpg');
            background-repeat: no-repeat; 
            background-size: cover;
            background-position: center center; 
            background-color: #000000;
            color: #ffffff; 
            overflow-x: hidden;
            position: relative;
        }
    #authButtons .admin-button {
        background-color: #e67e22; /* 주황색 계열 */
        color: white;
        text-decoration: none;
        display: inline-block;
         vertical-align: middle; /* 다른 버튼과 세로 정렬 맞춤 */
    }
        body.menu-visible { align-items: center; justify-content: flex-start; overflow-y: auto; }
#blockClicks {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    pointer-events: none; /* 'all'을 'none'으로 변경 */
}
        /* #openingVideoPlayer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 10000; background-color: #000; display: none; pointer-events: none; } */
       
#openingVideoPlayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: fill;     /* 🔥 핵심 */
  z-index: 10000;
  background-color: #000;
}
        .menu-container { 
            display: flex;
            text-align: center;
            /* width: 100%; 
            min-height: 24vh;                 
            padding-bottom: 50px; */
            flex-direction: column;
            gap: 210px;
        }
        .program-title { font-size: 1.8em; color: #d80012; margin: 15px 0 10px 0; text-shadow: 0 0 8px rgba(0,0,0,0.7); }
        .program-title2 { font-size: 1.8em; color: #00ffdd; margin: 15px 0 10px 0; text-shadow: 0 0 8px rgba(0,0,0,0.7); }
        .program-subtitle { font-size: 1.1em; color: #ffffff; margin-bottom: 20px; text-shadow: 0 0 8px rgb(0, 0, 0); }
        .menu-button { display: block; background-color: rgba(0, 0, 0, 0.6); color: white; padding: 13px 3px; margin: 15px auto; border: 1px solid rgba(255,255,255,0.3); border-radius: 10px; text-decoration: none; font-size: 1.3em; width: auto; min-width: 440px; max-width: 90%; box-sizing: border-box; box-shadow: 0 2px 5px rgba(0,0,0,0.3); transition: background-color 0.3s ease, transform 0.1s ease; }
        .menu-button:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
        .menu-button .main-text { display: block; font-size: 1.2em; font-weight: bold; color: #87CEFA; }
        .menu-button .sub-text { display: block; font-size: 0.8em; color: #f0f0f0; margin-top: 5px; }
        body.logged-out .menu-button-app { pointer-events: none; opacity: 0.5; cursor: not-allowed !important; }
        #authButtons { position:absolute; top:15px; right:15px; z-index:101; text-align: right; }
        #authButtons button, #authButtons a { min-width: auto; padding: 5px 12px; font-size: 0.85em; margin-left: 5px; cursor: pointer; border: none; border-radius: 5px; background-color: #007bff; color: white; display: inline-block; vertical-align: middle; }
        #authButtons button:hover, #authButtons a:hover { background-color: #0056b3; }
        
        #authButtons .admin-button:hover { background-color: #d35400; }
        
        #userInfoDisplayArea { 
            display: none; 
            width: fit-content; 
            height: 95%; 
            max-width: 95%; 
            margin: 10px auto; 
            padding: 8px 15px; 
            background-color: rgba(20, 20, 20, 0.8); 
            border-radius: 8px; 
            color: #f0f0f0; 
            text-align: center; 
            box-shadow: 0 1px 4px rgba(0,0,0,0.3); 
            z-index: 100; 
            font-size: 0.85em; 
        }

        #userInfoDisplayArea span {
             margin: 0 7px;
             white-space: nowrap; 
        }

        #licenseInfo { min-height: 1.1em; font-size: 1.4em; color: #FFA500; margin-bottom: 10px; }
        #loginRequiredMessage { display: none; font-size: 1.2em; color: #FFC107; margin: 20px 0; text-align:left; font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
        .copyright-container { display: none; position: fixed; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 0.8em; color: rgba(82, 82, 82, 0.7); z-index: 100; }
        
        .modal { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); align-items: center; justify-content: center; }
  #loginModal {
    background-color: rgba(0, 0, 0, 0.4); /* 0.7에서 0.4로 낮춤 */
    backdrop-filter: blur(2px); /* 약간의 블러 효과로 집중도 향상 */
}
/* 영상이 클릭 이벤트를 가로채지 않도록 설정 */
#openingVideoPlayer {
    pointer-events: none;
}
        .modal-content { 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-content h2 { margin-top:0; color: #87CEFA; }
        .modal-content label { display: block; margin-top: 10px; margin-bottom: 5px; font-size:0.9em; }
        .modal-content input { width: calc(100% - 20px); padding: 10px; margin-bottom: 12px; border-radius: 5px; border: 1px solid #555; background-color: #333; color:white; }
        .modal-content button { width: 100%; padding: 12px; margin-top:15px; border-radius:5px; background-color: #007bff; color:white; border:none; cursor:pointer; }
        .modal-content button:hover { background-color: #0056b3; }
      
        .close-button { float: right; font-size: 1.8em; cursor: pointer; color: #aaa; line-height: 1; padding: 0 5px; }
        .close-button:hover { color: white; }
        #challengeModal p { margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid #444; padding-bottom: 15px; }
        #challengeModal strong { color: #FFC107; }
        .game-selection-group { display: flex; gap: 15px; margin-bottom: 15px; }
        .game-selection-group .game-option { display: flex; align-items: center; cursor: pointer; font-size: 1em; }
        .game-selection-group input[type="radio"] { width: auto; margin-right: 8px; }
        /* 로비 창 관련 스타일 */
        #inactivityTimerDisplay { font-weight: normal; font-size: 0.85em; color: #FFCA28; margin: 0 auto; pointer-events: none; }
        .menu-button.disabled {
            pointer-events: none;
            opacity: 0.5;
            cursor: not-allowed !important;
        }
/* 로그인 전 중앙 로딩 영상 */
#preLoginVideoWrapper {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
}

#preLoginVideo {
    width: 720px;          /* 적당한 크기 */
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    background: #000;
}

/* 로그인 전 상태일 때만 표시 */
body.logged-out #preLoginVideoWrapper {
    display: flex;
}

/* 로그인 후엔 숨김 */
body.logged-in #preLoginVideoWrapper {
    display: none;
}
#preLoginVideo {
    pointer-events: none;
}

/* main_menu.css에 추가 */
#preLoginVideoWrapper {
    position: relative; /* 자식 요소인 videoControls의 절대 위치 기준 */
    display: flex;
    justify-content: center;
    align-items: center;
}

#videoControls button:hover {
    transform: scale(1.1);
}
.menu-button-app .sub-text {
    white-space: pre-line; /* 줄바꿈 + 자동 줄바꿈 */
    line-height: 1.1;
}
/* 기본 테마 설정 */
:root {
    --erp-bg: #f5f7fa;
    --erp-main: #2c3e50;
    --erp-blue: #3498db;
    --erp-white: #ffffff;
    --erp-border: #e1e8ed;
}

body.erp-theme {
    background: var(--erp-bg);
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    color: var(--erp-main);
}

/* 상단 헤더 */
.erp-header {
    height: 60px;
    width: 95%;
    background: var(--erp-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-weight: bold; font-size: 1.2rem; }
.logo .blue { color: var(--erp-blue); }

.rest-icon { text-decoration: none; filter: grayscale(1); opacity: 0.5; transition: 0.3s; margin-right: 15px; }
.rest-icon:hover { filter: grayscale(0); opacity: 1; }

/* 메인 레이아웃 (PC 기준) */
.main-layout {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
}

/* 사이드바 */
.sidebar { width: 300px; flex-shrink: 0; }
.user-profile-card {
    background: var(--erp-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #000;     /* 🔥 테두리 추가 */


    background: linear-gradient(130deg, #e1e1e1d7, #7d7d7d);
    color: rgb(255, 255, 255);
    box-shadow: 0 4px 10px rgba(0,0,0,0.55); 
    font-weight: bold;
    text-decoration: none;
    
    transition: 0.2s;
}

/* 대시보드 그리드 */
.dashboard-content { flex-grow: 1; }
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dash-card {
    background: var(--erp-white);
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #000;     /* 🔥 테두리 추가 */
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.main-card { grid-column: span 2; background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);border: 1px solid #000;     /* 🔥 테두리 추가 */ }

/* 모바일 대응 (반응형) */
@media (max-width: 768px) {
    .main-layout { flex-direction: column; padding: 10px; }
    .sidebar { width: 100%; }
    .grid-container { grid-template-columns: 1fr; } /* 카드를 한 줄씩 */
    .main-card { grid-column: span 1; }
    .header-center { display: none; } /* 모바일에서 라이선스 텍스트 숨김 (자리 부족) */
}
.widget-btn {
    display: block;
    text-align: center;
    padding: 9px;
    background: linear-gradient(350deg, #e1e1e1d7, #242424);
    color: rgb(255, 255, 255);
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.55);
    transition: all 0.25s ease;
    font: 0.7em sans-serif;
    border: 2px solid #000;
}

.widget-btn:hover {
    transform: scale(1.1);
    animation: neonPulse 1.5s ease-in-out infinite;
}

@keyframes neonPulse {
    0% {
        box-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff;
    }
    50% {
        box-shadow:
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 60px #00ffff;
    }
    100% {
        box-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff;
    }
}
.widget-btn:active {
    transform: translateY(0);
}
.button-group {
    display: flex;        /* 가로 정렬 */
    flex-wrap: wrap;      /* 줄 넘치면 자동 줄바꿈 */
    gap: 10px;            /* 버튼 사이 간격 */
    margin-top: 10px;
}
.White {color: #db6dff;}

.dash-card {
    background: linear-gradient(130deg, #ffffffd7, #dbf4fd);
    color: rgb(107, 255, 243);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);    
    font-weight: bold;
    text-decoration: none;
    border: 1px solid var(--erp-border);
    
    transition: 0.2s;
}
.widget-btn2 {
    display: block;
    text-align: center;
    padding: 15px;
    background: linear-gradient(350deg, #ffffffd7, #c2c2c2);
    color: rgb(0, 0, 0);
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgb(75, 255, 96);
    transition: 0.2s;
    font: 0.8em sans-serif;
}
.widget-btn2:hover {
    transform: scale(1.1);
    animation: neonPulse 1.5s ease-in-out infinite;
}

@keyframes neonPulse {
    0% {
        box-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff;
    }
    50% {
        box-shadow:
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 60px #00ffff;
    }
    100% {
        box-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff;
    }
}

.widget-btn2:active {
    transform: translateY(0.97);
}
.admin-badge {
    display: block;
    text-align: center;
    padding: 4px;
    background: linear-gradient(350deg, #ffffffd7, #c2c2c2);
    color: rgb(0, 0, 0);
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgb(75, 255, 96);
    transition: 0.2s;
    font: 0.8em sans-serif;
    border: 2px solid #000;
}
.admin-badge:hover {
    transform: scale(1.1);
    animation: neonPulse 1.5s ease-in-out infinite;
}

@keyframes neonPulse {
    0% {
        box-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff;
    }
    50% {
        box-shadow:
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 60px #00ffff;
    }
    100% {
        box-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #00ffff;
    }
}


.color-change {
    font-size: 40px;
    font-weight: bold;
    animation: changeColor 4s infinite;
}

@keyframes changeColor {
    0% { color: red; }
    16% { color: orange; }
    33% { color: yellow; }
    50% { color: green; }
    66% { color: blue; }
    83% { color: indigo; }
    100% { color: violet; }
}

.license-badge {
    font-weight: bold;
    font-size: 40px;
    background: linear-gradient(
        90deg,
        red, orange, yellow, green, blue, indigo, violet, red
    );
    background-size: 200% auto;

    background-clip: text;              /* 표준 */
    -webkit-background-clip: text;      /* Chrome/Safari */

    color: transparent;                 /* 표준 */
    -webkit-text-fill-color: transparent;

    animation: rainbowMove 3s linear infinite;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.copyright-container {
    font-weight: bold;
    font-size: 0.8em;
    background: linear-gradient(
        90deg,
        red, orange, yellow, green, blue, indigo, violet, red
    );
    background-size: 200% auto;

    background-clip: text;              /* 표준 */
    -webkit-background-clip: text;      /* Chrome/Safari */

    color: transparent;                 /* 표준 */
    -webkit-text-fill-color: transparent;

    animation: rainbowMove 3s linear infinite;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/*========================아바타 서택 스타일 ===============================================================*/
.avatar-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.avatar-grid-container img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
    border: 3px solid transparent;
    object-fit: cover;
}

.avatar-grid-container img:hover {
    transform: scale(1.1);
    border-color: #0066ff;
}

/* 사이드바 아바타 스타일 */
.top-avatar {
    cursor: pointer;
    transition: filter 0.3s;
    object-fit: contain;
}

.top-avatar:hover {
    filter: brightness(0.8);
}

