* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
input,
select,
textarea {
    font-family: var(--app-font-base) !important;
}

body {
    font-size: 14px;
    background-color: #f5f5f5;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

.login-box {
    background: linear-gradient(145deg, #f5f0e0 0%, #ebe5d0 100%);
    padding: 40px 45px;
    border-radius: 24px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 400px;
    border: 1px solid rgba(200, 190, 160, 0.5);
}

.login-box h1 {
    color: #3a3530;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 800;
}

.login-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 8px;
}

.login-box h2 {
    color: #4a4540;
    margin-bottom: 28px;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 2px;
}

/* 로그인 페이지 전용 스타일 */
.login-box .checkbox-group {
    margin-bottom: 12px;
    text-align: left;
}

.login-box .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #4a4540;
    cursor: pointer;
    font-weight: normal;
}

.login-box .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #7a6850;
    cursor: pointer;
}

.login-box .checkbox-label span {
    line-height: 1.5;
}

.login-box .work-label span {
    color: #c04050;
    font-weight: normal;
}

.login-box .checkbox-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.login-box .checkbox-row .checkbox-label {
    font-size: 13px;
}

.login-box .form-group {
    margin-bottom: 16px;
}

.login-box .form-group.password-group {
    position: relative;
}

.login-box .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #c8c0a8;
    border-radius: 14px;
    font-size: 14px;
    font-weight: normal;
    color: #3a3530;
    background: #fffef8;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.login-box .form-group.password-group input {
    padding-right: 50px;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif !important;
}

.login-box #pass,
.login-box input#pass,
.login-box input[type="password"]#pass,
.login-box input[type="text"]#pass {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif !important;
}

.login-box .form-group input::placeholder {
    color: #a09080;
    font-weight: 400;
}

.login-box .form-group input:focus {
    outline: none;
    border-color: #a09070;
    background: #fffef8;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.05),
        0 0 0 2px rgba(160, 144, 112, 0.3);
}

.login-box .btn-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 5px;
}

.login-box .btn-toggle-pass:hover {
    opacity: 1;
}

.login-box .btn-toggle-pass.active {
    opacity: 1;
}

.login-box .btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6a5a48 0%, #5a4a38 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(90, 74, 56, 0.4);
}

.login-box .btn-login:hover {
    background: linear-gradient(135deg, #7a6a58 0%, #6a5a48 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 74, 56, 0.5);
}

.login-box .btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(90, 74, 56, 0.4);
}

.login-box .error-message {
    color: #d85a6e;
    margin-top: 15px;
    font-size: 13px;
    font-weight: 600;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    background: #333;
    color: white;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    padding: 8px 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-logout:hover {
    background: #c0392b;
}

.main-body {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 220px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
}

.menu {
    list-style: none;
}

.menu-group {
    margin-bottom: 10px;
}

.menu-title {
    display: block;
    padding: 10px 20px;
    font-weight: bold;
    color: #95a5a6;
    font-size: 12px;
    text-transform: uppercase;
}

.submenu {
    list-style: none;
}

.submenu li a {
    display: block;
    padding: 10px 20px 10px 30px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s;
}

.submenu li a:hover {
    background: #34495e;
}

.submenu li a.active {
    background: #667eea;
}

.content {
    flex: 1;
    padding: 20px;
    overflow: auto;
}

.content h2 {
    margin-bottom: 20px;
    color: #333;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd6;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.table-container {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

tr:hover {
    background: #f5f5f5;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.search-bar select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button:hover {
    background: #f5f5f5;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}
