* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, , Verdana, sans-serif;
    background: #fafafa;
    color: #444;
    line-height: 1.6;
}

/* Login Page */
#login-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #4a7ba7 0%, #6b9bc3 100%);
    z-index: 1000;
}

.login-container {
    background: white;
    padding: 45px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.login-container h2 {
    color: #4a7ba7;
    font-size: 26px;
    margin-bottom: 6px;
    text-align: center;
}

.login-container p {
    color: #888;
    text-align: center;
    font-size: 14px;
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    color: #555;
    font-size: 14px;
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #4a7ba7;
    box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.08);
}

.btn-submit {
    width: 100%;
    padding: 11px;
    background: #4a7ba7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 14px;
}

.btn-submit:hover {
    background: #3a6088;
}

.error-msg {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 14px;
    text-align: center;
}

.hint {
    color: #999;
    font-size: 12px;
    text-align: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

/* Portal Page */
#portal-section {
    visibility: hidden;
}

.header {
    background: #4a7ba7;
    color: white;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 3px;
}

.header p {
    font-size: 13px;
    opacity: 0.9;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.container {
    display: flex;
    min-height: calc(100vh - 100px);
    background: white;
}

.sidebar {
    width: 160px;
    background: #f8f8f8;
    border-right: 1px solid #e8e8e8;
}

.nav-menu {
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 13px 16px;
    text-decoration: none;
    color: #555;
    border-bottom: 1px solid #efefef;
    cursor: pointer;
    font-size: 13px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #4a7ba7;
    color: white;
}

.content {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page h2 {
    color: #4a7ba7;
    margin-bottom: 18px;
    border-bottom: 2px solid #4a7ba7;
    padding-bottom: 10px;
    font-size: 22px;
}

.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.box {
    background: #f9f9f9;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.box h3 {
    color: #4a7ba7;
    margin-bottom: 12px;
    font-size: 15px;
}

.box ul {
    margin-left: 18px;
}

.box li {
    margin-bottom: 7px;
    font-size: 13px;
}

.box p {
    font-size: 13px;
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 13px;
}

table th {
    background: #4a7ba7;
    color: white;
    padding: 10px;
    text-align: left;
}

table td {
    border: 1px solid #e8e8e8;
    padding: 10px;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

.notice {
    background: white;
    padding: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #4a7ba7;
}

.notice-date {
    font-size: 11px;
    color: #999;
}

.notice-title {
    font-weight: 600;
    color: #4a7ba7;
    margin: 5px 0;
    font-size: 14px;
}

iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 8px;
    margin-top: 14px;
}

.footer {
    background: #4a7ba7;
    color: white;
    text-align: center;
    padding: 14px;
    font-size: 12px;
}

.contact-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 13px;
}

.contact-item strong {
    color: #4a7ba7;
}

.contact-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .three-column, .grid-2 {
        grid-template-columns: 1fr;
    }
    .sidebar {
        width: 130px;
    }
}
