body {
    background-color: #f8f9fa;
    font-family: "Inter", system-ui, sans-serif;
    overflow-x: hidden;
}

.calendar-scroll {
    height: 93dvh;
    overflow-y: auto;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
}

.form {
    background-color: #F8F8FF;
    display: block;
    padding: 1rem;
    max-width: 350px;
    border-radius: 0.5rem;
    box-shadow: 0 15px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px 3px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    text-align: center;
    color: #000;
}

.input-container {
    position: relative;
}

.input-container input,
.form button {
    outline: none;
    border: 1px solid #e5e7eb;
    margin: 8px 0;
}

.input-container input {
    background-color: #fff;
    padding: 1rem;
    padding-right: 3rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    width: 300px;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.submit {
    display: block;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    background-color: #4F46E5;
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    width: 100%;
    border-radius: 0.5rem;
    text-transform: uppercase;
}

.signup-link {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: center;
}

.signup-link a {
    text-decoration: underline;
}

.half-moon-blue {
    position: relative;
    background: radial-gradient(125% 125% at 50% 10%, #fff 40%, #63e 100%);
    overflow: hidden;
    /* ensures overlay doesn’t spill out */
}

.half-moon-dark {
    background: radial-gradient(125% 125% at 50% 10%, #000 40%, #63e 100%);
}

.navbar {
    background: linear-gradient(90deg, #0061ff, #60efff);
}

.sidebar {
    height: 93dvh;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

.sidebar .nav-link {
    color: #333;
    font-weight: 500;
    border-radius: 0.5rem;
    margin-bottom: .25rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    background-color: #e7f1ff;
    color: #0061ff;
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.card-header {
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}

.chat-box {
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #eee;
}

.message {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    max-width: 75%;
}

.message.admin {
    background-color: #e7f1ff;
    align-self: flex-end;
}

.message.student {
    background-color: #f1f3f4;
    align-self: flex-start;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

.chat-input textarea {
    resize: none;
}


.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    height: 85dvh;
}

.ifont {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* iMessage-style bubbles */
.bubble {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 18px;
    margin-bottom: 10px;
    max-width: 75%;
    word-wrap: break-word;
}

.bubble-student {
    background-color: #007aff;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.bubble-admin {
    background-color: #e5e5ea;
    color: #000;
    border-bottom-left-radius: 4px;
}

.timestamp {
    font-size: 0.75rem;
    color: #888;
    margin-top: 3px;
}

/* Composer */
.composer {
    background-color: #fff;
    border-top: 1px solid #ddd;
    padding: 0.75rem;
}

textarea {
    resize: none;
    border-radius: 20px;
    border: 1px solid #ccc;
    padding: 10px;
}

.send-btn {
    border-radius: 20px;
    background-color: #007aff;
    border: none;
    color: #fff;
    padding: 10px 18px;
    transition: background-color 0.2s ease;
}
.send-btn:hover {
    background-color: #005bb5;
}

@media (max-width: 1300px) {
    .nav-link {
        padding: 2px 0px;
        margin: 0px 0px 0px;
        font-size: 1em;
    }
}

@media (max-width: 991px) {
    .sidebar {
        display: none;
    }

    .messages {
    height: 80dvh;
    }
}

