* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f5f7;
    color: #222;
}

.app-shell {
    min-height: 100vh;
}

.topbar {
    height: 60px;
    background: #123c69;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.brand {
    font-size: 22px;
    font-weight: bold;
}

.topbar-right {
    font-size: 14px;
    opacity: 0.9;
}

.content {
    padding: 24px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.page-header p {
    margin: 0;
    color: #666;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #123c69, #1f6f8b);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    margin: 0;
    color: #123c69;
    font-size: 30px;
}

.login-header p {
    margin: 8px 0 0;
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    height: 42px;
    border: 1px solid #ccd3da;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #123c69;
}

.btn-primary {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #123c69;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0d2d4f;
}

.alert-error {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c2c0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.room-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.room-card:hover {
    transform: translateY(-4px);
}

.room-card h3 {
    margin: 0 0 10px;
    color: #123c69;
}

.room-card p {
    margin: 4px 0;
    font-size: 14px;
}

.btn-primary.small {
    margin-top: 12px;
    height: 36px;
    font-size: 13px;
}

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 24px;
    display: flex;
    gap: 20px;
    height: 48px;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: #123c69;
    font-weight: 500;
    font-size: 14px;
}

.navbar a:hover {
    text-decoration: underline;
}

.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: flex;
    gap: 16px;
    border: 1px solid #e1e6ea;
    border-radius: 12px;
    padding: 14px;
    background: #fafafa;
}

.schedule-time {
    min-width: 110px;
    font-weight: bold;
    color: #123c69;
}

.schedule-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-info span {
    font-size: 14px;
    color: #555;
}

.text-link {
    color: #123c69;
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}

.form-card {
    max-width: 760px;
}

.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #ccd3da;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-group select {
    height: 42px;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}