/* ===== Public-facing pages (frontpage, login, portal) ===== */

.public-body {
    background: var(--bg-body);
}

/* Navbar */
.public-navbar {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 14px 0;
}

.public-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 16px;
    color: #1e293b;
}

.public-navbar .brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    font-size: 18px;
}

.public-navbar .nav-link {
    font-weight: 600;
    color: #475569;
    padding: 8px 14px !important;
    border-radius: 8px;
}

.public-navbar .nav-link.active,
.public-navbar .nav-link:hover {
    color: var(--primary);
}

.public-main {
    min-height: calc(100vh - 140px);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary-light) 100%);
    color: white;
    padding: 70px 0;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(6px);
}

.hero-card-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 10px;
}

.hero-card-subject {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-card-date {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.95;
}

.hero-card-time {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* Announcements */
.announcement-section {
    padding: 56px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 28px;
}

.section-title-sm {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
}

.announcement-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    height: 100%;
    box-shadow: var(--card-shadow);
}

.announcement-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.announcement-card p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0;
}

/* Auth */
.auth-section {
    padding: 70px 0;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: white;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    padding: 40px;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.auth-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.auth-card form {
    text-align: left;
}

/* Portal */
.portal-section {
    padding: 48px 0;
}

.portal-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--card-shadow);
}

.portal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.portal-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.portal-search-wrap {
    position: relative;
    max-width: 500px;
}

.suggest-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    margin-top: 6px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 20;
}

.suggest-list.show {
    display: block;
}

.suggest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

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

.suggest-item:hover {
    background: rgba(67, 97, 238, 0.06);
}

.suggest-name {
    font-weight: 600;
}

.suggest-kelas {
    font-size: 12px;
    color: #94a3b8;
}

.suggest-empty {
    padding: 14px 16px;
    color: #94a3b8;
    font-size: 13px;
}

.student-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.info-pill {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13.5px;
    color: #334155;
}

.seat-cell-mine {
    outline: 2px solid var(--success);
    border-radius: 6px;
    background: rgba(6, 214, 160, 0.08);
}

.seat-masked {
    font-size: 10px;
    color: #cbd5e1;
    letter-spacing: 0.5px;
}

/* Footer */
.public-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 20px 0;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section { padding: 48px 0; text-align: center; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .auth-card { padding: 28px 20px; }
    .portal-card { padding: 20px; }
}
