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

html,
body {
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f9fafb;
}

.container {
    max-width: 448px;
    margin: 0 auto;
    background: #f9fafb;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
}

.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #f83600;
}

.logo-text {
    font-weight: bold;
    font-size: 1.25rem;
    color: #f83600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logout-btn {
    width: 40px;
    height: 40px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #dc2626;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background: #fee2e2;
}

.logout-icon {
    width: 20px;
    height: 20px;
}

.avatar-btn {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #374151;
}

.main-content {
    padding: 1.5rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    margin-bottom: 1rem;
    cursor: pointer;
}

.gradient-card {
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.gradient-card-purple {
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
}

.welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.welcome-title {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

.welcome-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0 !important;
    line-height: 1.2;
}

.welcome-info,
.welcome-details {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.78rem !important;
}

.avatar-large {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-card-icon {
    width: 20px;
    height: 20px;
}

.stat-card-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.section-title {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.activity-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-code {
    font-size: 0.675rem;
    font-weight: bold;
    color: #2563eb;
    text-align: center;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

.activity-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    border: 1px solid;
}

.badge-green {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.badge-red {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* Subject view toggle buttons */
.sy-menu-item {
    padding: 8px 14px;
    font-size: 0.78rem;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s;
}

.sy-menu-item:hover {
    background: #f3f4f6;
}

.sy-menu-item.active {
    color: #1d4ed8;
    font-weight: 600;
    background: #eff6ff;
}

.subject-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.2rem;
    flex-shrink: 0;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.view-toggle-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.view-toggle-btn.active {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Week view */
.subject-week-view {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.week-day-row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    min-height: 2rem;
}

.week-day-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 2rem;
    flex-shrink: 0;
    padding-top: 0.35rem;
    text-align: center;
}

.week-day-label.has-subject {
    color: #374151;
}

.week-day-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex: 1;
}

.week-subject-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.12s;
    white-space: nowrap;
    line-height: 1.4;
}

.week-subject-chip:hover {
    opacity: 0.85;
    transform: scale(0.97);
}

.week-day-empty {
    font-size: 0.7rem;
    color: #d1d5db;
    padding-top: 0.35rem;
    font-style: italic;
}

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

.subject-card {
    border-radius: 0.875rem;
    padding: 1rem;
    color: white;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 92px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}

.subject-card:hover {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.subject-card:active {
    transform: scale(0.94);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.course-code {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subject-name {
    font-weight: 500;
    font-size: 0.73rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.schedule-code {
    font-size: 0.63rem;
    opacity: 0.8;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
    padding-top: 0.25rem;
}

.bg-blue   { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.bg-purple { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }
.bg-green  { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); }
.bg-orange { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%); }
.bg-red    { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.bg-pink   { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.bg-yellow { background: linear-gradient(135deg, #eab308 0%, #a16207 100%); }
.bg-teal   { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.bg-indigo { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); }
.bg-cyan   { background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%); }
.bg-rose   { background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%); }

.subject-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subject-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subject-group-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0.25rem;
}

.subject-item {
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.subject-item:hover {
    background: #f3f4f6;
}

.subject-badges {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.subject-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    line-height: 1.5;
}

.subject-badge-blue    { background: #dbeafe; color: #1d4ed8; }
.subject-badge-purple  { background: #ede9fe; color: #7c3aed; }
.subject-badge-green   { background: #dcfce7; color: #16a34a; }
.subject-badge-orange  { background: #ffedd5; color: #c2410c; }
.subject-badge-red     { background: #fee2e2; color: #b91c1c; }
.subject-badge-pink    { background: #fce7f3; color: #be185d; }
.subject-badge-yellow  { background: #fef9c3; color: #a16207; }
.subject-badge-teal    { background: #ccfbf1; color: #0f766e; }
.subject-badge-indigo  { background: #e0e7ff; color: #4338ca; }
.subject-badge-cyan    { background: #cffafe; color: #0e7490; }
.subject-badge-rose    { background: #ffe4e6; color: #be123c; }
.subject-badge-gray    { background: #e5e7eb; color: #4b5563; }

.subject-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.3rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subject-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.back-btn {
    color: #2563eb;
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.term-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.term-header {
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    width: 100%;
    text-align: left;
    background: white;
}

.term-header:hover {
    background: #f9fafb;
}

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

.term-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.term-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    color: white;
}

.term-icon-blue {
    background: #3b82f6;
}

.term-icon-gray {
    background: #9ca3af;
}

.term-info h4 {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.term-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.term-score {
    text-align: right;
}

.term-score-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.term-score-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.chevron {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.chevron.rotated {
    transform: rotate(180deg);
}

.term-content {
    display: none;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
    padding: 1rem;
}

.term-content.expanded {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s;
}

.progress-blue {
    background: #3b82f6;
}

.progress-green {
    background: #22c55e;
}

.progress-yellow {
    background: #eab308;
}

.progress-red {
    background: #ef4444;
}

.criteria-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.criteria-item {
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s;
}

.criteria-item:hover {
    border-color: #93c5fd;
}

.criteria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.criteria-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.criteria-icon {
    font-size: 1rem;
}

.criteria-info {
    flex: 1;
    min-width: 0;
}

.criteria-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.criteria-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.criteria-weight {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.criteria-date {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.criteria-score {
    text-align: right;
    flex-shrink: 0;
}

.criteria-score-value {
    font-size: 1.125rem;
    font-weight: bold;
}

.criteria-score-percent {
    font-size: 0.75rem;
    color: #6b7280;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    max-width: 448px;
    margin: 0 auto;
    z-index: 100;
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
}

.nav-item.active {
    color: #f83600;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-xlarge {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    letter-spacing: 0.01em;
}

.profile-id {
    color: #bfdbfe;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.profile-tags {
    display: flex;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.profile-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.info-label svg {
    flex-shrink: 0;
    opacity: 0.55;
}

.info-value {
    font-weight: 600;
    color: #1f2937;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.action-btn {
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-btn-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
}

.action-btn-vertical:active {
    transform: scale(0.97);
}

.action-btn-vertical svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.action-btn-danger-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: none;
    border: 1px solid #fca5a5;
    border-radius: 9999px;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #dc2626;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-btn-danger-link:hover {
    background: #fff1f2;
}

.action-btn-logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.action-btn-logout-link:hover {
    color: #374151;
}

.action-btn-blue {
    background: #eff6ff;
    color: #2563eb;
}

.action-btn-blue:hover {
    background: #dbeafe;
}

/* Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.hidden {
    display: none !important;
}

.login-box {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: #f83600;
}

.login-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 0.75rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    fill: #9ca3af;
    z-index: 1;
}

.form-input-with-icon {
    padding-left: 2.5rem !important;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #f83600;
}

.form-input-wrapper .form-input:focus+.form-input-icon,
.form-input-wrapper:focus-within .form-input-icon {
    fill: #f83600;
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #f83600;
}

.form-checkbox-label {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    padding: 0.875rem;
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.login-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.login-link {
    color: #f83600;
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

.app-wrapper {
    display: none;
}

.app-wrapper.show {
    display: block;
}

/* Page Title Styles */
.page-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Settings Styles */
.settings-content {
    padding: 1.5rem;
}

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.settings-item-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.settings-item-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #2563eb;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* Help & Support Styles */
.help-content {
    padding: 1.5rem;
}

.help-section {
    margin-bottom: 1.5rem;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    color: #1f2937;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1rem 1rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.faq-answer.expanded {
    display: block;
}

@media (max-width: 640px) {
    .container {
        max-width: 100%;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .modal-content {
        max-width: 100%;
        margin: 0 1rem;
    }
}

/* PIN Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-box {
    background: white;
    border-radius: 1rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header-pin {
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title-pin {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.modal-body-pin {
    padding: 2rem 1.5rem;
    text-align: center;
}

.pin-avatar-section {
    margin-bottom: 1.5rem;
}

.pin-avatar {
    width: 80px;
    height: 80px;
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 0.75rem;
}

.pin-user-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.pin-user-email {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.pin-instruction {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pin-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.pin-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    color: #1f2937;
    transition: all 0.2s ease;
}

.pin-digit:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pin-digit::-webkit-outer-spin-button,
.pin-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pin-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 0.375rem;
}

.pin-btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-bottom: 0.75rem;
}

.pin-btn:hover {
    opacity: 0.9;
}

.pin-btn-primary {
    background: #fe8c00;
    background: -webkit-linear-gradient(to top, #f83600, #fe8c00);
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
}

.pin-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.pin-btn-link {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.pin-btn-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Floating Label Styles */
.floating-label-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.floating-label-group .form-input {
    padding: 1.25rem 1rem 0.5rem 1rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.floating-label-group .form-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.floating-label-group .form-input:focus+.floating-label,
.floating-label-group .form-input:not(:placeholder-shown)+.floating-label {
    top: 0.5rem;
    font-size: 0.7rem;
    color: #667eea;
    font-weight: 600;
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
}

.floating-label-group .form-input:focus+.floating-label {
    color: #667eea;
}

/* Gender Selector Styling - Isolated */
.gender-selector-container {
    /* margin-bottom: 1.25rem; */
}

.gender-selector-container .gender-selector-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.gender-selector-container .radio-input {
    display: flex;
    width: 100%;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.gender-selector-container .radio-input>* {
    float: left;
}

.gender-selector-container .radio-input input {
    height: 48px;
    width: 48px;
    translate: 0px 24px;
    opacity: 0;
    z-index: 10;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.gender-selector-container .radio-input .card {
    height: 48px;
    width: 48px;
    border: 2px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0.625rem;
    translate: 0px -24px;
    position: relative;
    z-index: 9;
    transition: all 0.2s ease;
    color: #9ca3af;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.gender-selector-container .radio-input .card .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
}

.gender-selector-container .radio-input .card .title {
    display: none;
}

.gender-selector-container .radio-input .i_female:hover~.card.female,
.gender-selector-container .radio-input .i_male:hover~.card.male {
    filter: brightness(1.05);
    border-color: #d1d5db;
}

.gender-selector-container .radio-input .i_female:checked~.card.female {
    border: 2px solid #ec4899;
    color: #ec4899;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.gender-selector-container .radio-input .i_male:checked~.card.male {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Checkbox Styling for Registration */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.checkbox-container:has(input:checked) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: #667eea;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-container label {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-container label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-container label a:hover {
    text-decoration: underline;
}

/* Register Form Header */
.register-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.register-form-header .login-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
}

.register-form-header .login-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.register-form-header .login-subtitle {
    font-size: 0.875rem;
}


/* Isolated Announcement Carousel Styles */
.announcement-carousel-wrapper .carousel-section {
    padding: 20px 0;
    overflow: hidden;
    /* background: #ccc; */
    /* linear-gradient(to top, #f83600, #fe8c00); */
    border-radius: 16px;
    margin-bottom: 1rem;
}

.announcement-carousel-wrapper .carousel-header {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-carousel-wrapper .carousel-section .section-title {
    font-size: 18px;
    font-weight: 700;
    /* color: white; */
    margin-bottom: 0;
}

.announcement-carousel-wrapper .view-all-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #374151;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.announcement-carousel-wrapper .view-all-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.announcement-carousel-wrapper .carousel-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 0 20px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.announcement-carousel-wrapper .carousel-container::-webkit-scrollbar {
    display: none;
}

.announcement-carousel-wrapper .quick-view-card {
    margin-top: 10px;
    flex: 0 0 300px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.announcement-carousel-wrapper .quick-view-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.announcement-carousel-wrapper .quick-view-card:active {
    transform: translateY(-2px);
}

.announcement-carousel-wrapper .quick-card-header {
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
    padding: 16px;
    position: relative;
}

.announcement-carousel-wrapper .unread-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
    animation: announcement-pulse 2s infinite;
}

@keyframes announcement-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.announcement-carousel-wrapper .quick-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    padding-right: 20px;
}

.announcement-carousel-wrapper .quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    opacity: 0.95;
}

.announcement-carousel-wrapper .quick-tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.announcement-carousel-wrapper .quick-separator {
    opacity: 0.5;
}

.announcement-carousel-wrapper .quick-card-body {
    padding: 16px;
}

.announcement-carousel-wrapper .quick-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.announcement-carousel-wrapper .quick-icon {
    width: 14px;
    height: 14px;
    color: #9ca3af;
}

.announcement-carousel-wrapper .quick-preview {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-carousel-wrapper .quick-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.announcement-carousel-wrapper .quick-attachments {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.announcement-carousel-wrapper .read-more {
    color: #f83600;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.announcement-carousel-wrapper .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
}

.announcement-carousel-wrapper .dot {
    width: 6px;
    height: 6px;
    background: rgba(248, 54, 0, 0.4);
    border-radius: 50%;
    transition: all 0.3s;
}

.announcement-carousel-wrapper .dot.active {
    width: 20px;
    border-radius: 3px;
    background: linear-gradient(to right, #f83600, #fe8c00);
}

.announcement-carousel-wrapper .urgency-normal {
    color: #93c5fd;
}

.announcement-carousel-wrapper .urgency-high {
    color: #fca5a5;
}

.announcement-carousel-wrapper .urgency-low {
    color: #86efac;
}

@media (max-width: 380px) {
    .announcement-carousel-wrapper .quick-view-card {
        flex: 0 0 280px;
    }

    .announcement-carousel-wrapper .quick-title {
        font-size: 16px;
    }
}

/* ================================================
   Full View Modal Styles - Isolated
   ================================================ */
.modal-overlay#modalOverlay {
    display: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay#modalOverlay.active {
    display: flex;
}

.modal-overlay .full-view-container {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    margin: auto;
    padding: 0 16px;
}

.modal-overlay .full-view-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    animation: fullViewSlideUp 0.3s ease-out;
}

@keyframes fullViewSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Full View Card Header */
.modal-overlay .full-card-header {
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
    padding: 20px;
    flex-shrink: 0;
}

.modal-overlay .full-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.modal-overlay .full-view-card .back-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
    margin: 0;
    padding: 0;
}

.modal-overlay .full-view-card .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-overlay .full-title {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    text-align: left;
    padding: 0;
}

.modal-overlay .share-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
}

.modal-overlay .share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-overlay .full-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.modal-overlay .full-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.modal-overlay .tag-icon {
    width: 14px;
    height: 14px;
}

.modal-overlay .full-separator {
    opacity: 0.6;
}

.modal-overlay .urgency-normal {
    color: #93c5fd;
}

.modal-overlay .urgency-high {
    color: #fca5a5;
    font-weight: 600;
}

.modal-overlay .urgency-low {
    color: #86efac;
}

/* Full View Card Content */
.modal-overlay .full-card-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay .posted-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-overlay .posted-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.modal-overlay .posted-item .icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.modal-overlay .body-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-overlay .body-content p {
    margin-bottom: 16px;
}

.modal-overlay .body-content p:last-child {
    margin-bottom: 0;
}

.modal-overlay .body-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.modal-overlay .body-content ul li {
    margin-bottom: 8px;
    color: #4b5563;
}

.modal-overlay .body-content strong {
    color: #1f2937;
}

/* Attachments & Links Sections */
.modal-overlay .attachments-section {
    margin-bottom: 20px;
}

.modal-overlay .content-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.modal-overlay .content-section-title .icon {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.modal-overlay .attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-overlay .attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.modal-overlay .attachment-item:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.modal-overlay .attachment-icon {
    width: 20px;
    height: 20px;
    color: #f83600;
}

.modal-overlay .attachment-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.modal-overlay .links-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-overlay .link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #bfdbfe;
}

.modal-overlay .link-item:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.modal-overlay .link-icon {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

.modal-overlay .link-name {
    font-size: 13px;
    font-weight: 500;
    color: #1d4ed8;
}

/* Full View Card Footer */
.modal-overlay .full-card-footer {
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.modal-overlay .full-card-footer .back-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

.modal-overlay .full-card-footer .back-btn:hover {
    background: #e5e7eb;
}

.modal-overlay .acknowledge-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-bottom: 12px;
}

.modal-overlay .acknowledge-btn.unread {
    background: linear-gradient(to top, #f83600, #fe8c00);
    color: white;
}

.modal-overlay .acknowledge-btn.unread:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.modal-overlay .acknowledge-btn.read {
    background: #d1fae5;
    color: #047857;
}

.modal-overlay .acknowledge-btn.read:hover {
    background: #a7f3d0;
}

.modal-overlay .comments-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-overlay .comments-toggle:hover {
    border-color: #9ca3af;
    color: #4b5563;
    background: #f3f4f6;
}

.modal-overlay .comments-toggle .icon {
    width: 18px;
    height: 18px;
}

.modal-overlay .comments-section {
    display: none;
    margin-top: 12px;
}

.modal-overlay .comments-section.active {
    display: block;
}

.modal-overlay .comment-input {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.modal-overlay .comment-input:focus {
    outline: none;
    border-color: #f83600;
}

.modal-overlay .comment-input::placeholder {
    color: #9ca3af;
}

/* Responsive Adjustments for Full View Modal */
@media (max-width: 480px) {
    .modal-overlay .full-view-container {
        padding: 0 12px;
    }

    .modal-overlay .full-view-card {
        border-radius: 16px;
        max-height: 90vh;
    }

    .modal-overlay .full-card-header {
        padding: 16px;
    }

    .modal-overlay .full-title {
        font-size: 16px;
    }

    .modal-overlay .full-card-content {
        padding: 16px;
    }

    .modal-overlay .body-content {
        font-size: 14px;
    }
}

.quick-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   ENROLLMENT MODULE STYLES
   ============================================================ */

/* Spin animation (shared) */
@keyframes spin-enroll {
    to {
        transform: rotate(360deg);
    }
}

.spin-anim {
    animation: spin-enroll 0.9s linear infinite;
}

/* ── Mode Toggle Pill ─────────────────────────────────────── */
.enroll-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 0;
    gap: 0;
}

.enroll-mode-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.enroll-mode-title.text-button {
    cursor: pointer;
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.15s ease;
}

.enroll-mode-title.text-button:hover {
    color: #1e40af;
}

.enroll-mode-btns {
    display: flex;
    gap: 0.75rem;
}

.mode-btn {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.18s ease;
}

.mode-btn.active {
    background: transparent;
    color: #1d4ed8;
    font-weight: 700;
    box-shadow: none;
}

/* ── Block Cards ──────────────────────────────────────────── */
.enroll-block-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.enroll-block-card:active {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* ── Individual Schedule Cards ────────────────────────────── */
.enroll-sched-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.15s;
}

.enroll-sched-card.enroll-sched-added {
    border-color: #6ee7b7;
    background: #f0fdf4;
}

.enroll-sched-card.enroll-sched-disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* Add / Added button */
.enroll-add-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #2563eb;
    background: #fff;
    color: #2563eb;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    align-self: center;
}

.enroll-add-btn.added {
    background: #059669;
    border-color: #059669;
    color: #fff;
    font-size: 1rem;
}

/* ── Badges ───────────────────────────────────────────────── */
.enroll-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    line-height: 1.4;
}

.enroll-badge-green {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.enroll-badge-yellow {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

.enroll-badge-red {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.enroll-badge-gray {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* ── Sticky Cart Bar ──────────────────────────────────────── */
.enroll-cart-bar {
    background: #1d4ed8;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

.cart-bar-review-btn {
    background: #fff;
    color: #1d4ed8;
    border: none;
    border-radius: 0.5rem;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* ── Bottom Sheets ────────────────────────────────────────── */
.bottom-sheet-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 500;
    align-items: flex-end;
    justify-content: center;
}

.bottom-sheet {
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1rem 1.25rem 1.5rem;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.22s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 auto 1rem;
}