/* =================================================================
 * 프로젝트명: 이투빌리티 VIMS (Vehicle Integrated Management System)
 * 파일명: css/layout.css (폰트 통합 버전)
 * ================================================================= */

/* 1. 디지털 폰트 등록 (로컬 파일 연결) */
@font-face {
    font-family: 'Segment7';
    src: url('../assets/fonts/Segment7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary: #1e293b;    /* 슬레이트 네이비 */
    --secondary: #334155;
    --accent: #f97316;     /* 세련된 오렌지 */
    --bg-main: #f8fafc;    /* 메인 배경색 */
    --sidebar-width: 280px;
}

body, html {
    margin: 0; padding: 0; height: 100%;
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
    background-color: var(--bg-main);
    color: #1e293b;
    overflow: hidden;
}

/* [사이드바 전체 구조] */
.sidebar { 
    width: var(--sidebar-width); 
    background: var(--primary); 
    color: #cbd5e1; 
    padding: 30px 20px; 
    position: fixed; 
    height: 100vh; 
    box-sizing: border-box; 
    z-index: 10;
    box-shadow: 4px 0 15px rgba(0,0,0,0.15);
}

.sidebar-brand { margin-bottom: 40px; text-align: center; }
.version-text { font-size: 22px; font-weight: 900; color: #fff; letter-spacing: -1px; }
.powered-text { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-top: 4px; }

/* [사이드바 시계 위젯 - 디지털 폰트 적용] */
.sidebar-widget { 
    background: linear-gradient(145deg, #2c3a4f, #1e293b); 
    padding: 25px 20px; 
    border-radius: 20px; 
    margin-bottom: 35px; 
    text-align: center; 
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 10px 20px rgba(0,0,0,0.2);
}

.widget-date { 
    font-size: 13px; 
    color: #94a3b8; 
    font-weight: 500; 
    letter-spacing: 0.5px;
}

.widget-time { 
    font-family: 'Segment7', sans-serif; /* 디지털 폰트 적용 */
    font-size: 38px;      /* 폰트 특성에 맞춰 크기 조정 */
    font-weight: normal; 
    color: #ff9f43;       /* 오렌지색으로 가독성 향상 */
    margin: 8px 0; 
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 159, 67, 0.5); /* 디지털 네온 효과 */
}

/* [사용자 정보 및 로그아웃 영역] */
.user-control-box { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    margin-top: 15px; 
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.user-status-dot { 
    width: 8px; height: 8px; background: #22c55e; border-radius: 50%; 
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.user-id-display { font-size: 14px; font-weight: 600; color: #e2e8f0; }

.btn-logout { 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: #fff; 
    padding: 4px 10px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 11px; 
    font-weight: bold;
    transition: 0.2s;
}

.btn-logout:hover { background: #e53e3e; border-color: #e53e3e; }

/* [사이드바 메뉴 스타일] */
.menu-group { margin-bottom: 25px; }
.menu-title { 
    font-size: 11px; color: #64748b; font-weight: 800; 
    margin-bottom: 12px; padding-left: 12px; letter-spacing: 1.5px;
}

.menu-item { 
    padding: 12px 16px; cursor: pointer; border-radius: 12px; 
    font-size: 14px; transition: all 0.2s ease; 
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 4px;
    color: #94a3b8;
}

.menu-item:hover { 
    background: rgba(255,255,255,0.08); color: #fff; 
}

/* [메인 영역] */
.main-content { 
    margin-left: var(--sidebar-width); 
    padding: 50px; 
    height: 100vh; 
    overflow-y: auto; 
    box-sizing: border-box; 
    scroll-behavior: smooth;
}

.hidden { display: none !important; }