/* Student App Custom Styles */

/* Safe Area for iOS */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Scrollbar Hide for Horizontal Scroll */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loading Animation */
@keyframes loadingBar {
    0% { width: 0%; }
    50% { width: 80%; }
    100% { width: 100%; }
}
.animate-loading-bar {
    animation: loadingBar 2s ease-in-out infinite;
}

/* Navigation Tab Active State */
.nav-tab {
    color: #94a3b8;
    transition: color 0.2s ease;
}
.nav-tab.active {
    color: var(--portal-brand-primary, #0A2342);
}
.student-shell-icon,
.student-icon {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    line-height: 1;
}
.student-shell-icon {
    font-size: 1.3rem;
}
.student-header-icon {
    font-size: 1.2rem;
}
.student-insight-card {
    min-height: 122px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.student-insight-card--action:hover {
    transform: translateY(-1px);
}
.student-insight-card__icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.student-insight-card__value {
    font-size: 1.25rem;
    line-height: 1.3;
}

/* Page Transitions */
.page-enter {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast Animation */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.toast-enter {
    animation: slideDown 0.3s ease-out;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Progress Ring */
.progress-ring__circle {
    transition: stroke-dashoffset 0.5s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Video Player Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background-color: black;
}
.video-container iframe,
.video-container .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bottom Sheet Transition */
#bottomSheet {
    transform: translateY(100%);
    pointer-events: none;
}

#bottomSheet.show {
    transform: translateY(0);
    pointer-events: auto;
}

#bottomSheet.hidden {
    display: none !important;
}

#sidebar-mobile.translate-x-full {
    transform: translateX(100%);
}

/* Modal Transition */
#modalContent.show {
    transform: scale(1);
    opacity: 1;
}

/* Chat Bubbles */
.chat-bubble-sent {
    background-color: #0A2342;
    color: white;
    border-radius: 1rem 1rem 0.25rem 1rem;
}
.chat-bubble-received {
    background-color: #f1f5f9;
    color: #1e293b;
    border-radius: 1rem 1rem 1rem 0.25rem;
}

/* Badge Pulse */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.pulse-badge {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Sticky CTA */
.sticky-bottom-cta {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: linear-gradient(to top, rgba(255,255,255,1) 80%, rgba(255,255,255,0));
    padding-top: 1.5rem;
}

/* Touch Feedback */
.touch-feedback:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

.dashboard-hero-cta {
    color: var(--portal-brand-primary, #0d9488);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-hero-cta:hover {
    background-color: #f8fafc !important;
    color: var(--portal-brand-primary, #0d9488) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px -12px rgba(15, 23, 42, 0.22) !important;
}

.dashboard-hero-cta:active {
    transform: translateY(0);
}
