/* Brand Palette: Neon Violet #8070E0, Cyan #8DCEFF, Orange #FF8C4B */
body { font-family: 'Poppins', sans-serif; background: #0D0F18; overflow-x: hidden; }

.font-mono-timer { font-family: 'Roboto Mono', monospace; }

.aurora-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: radial-gradient(circle at 10% 20%, rgba(100, 100, 255, 0.2) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(255, 100, 100, 0.2) 0%, transparent 40%); animation: aurora 30s infinite linear alternate; }
@keyframes aurora { 0% { transform: rotate(0deg) scale(1.5); filter: blur(20px); } 100% { transform: rotate(360deg) scale(2); filter: blur(30px); } }
.glass-ui { background: rgba(17, 20, 39, 0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.05); }
@keyframes fade-in { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fade-in 0.5s ease-out forwards; }
.perspective-1000 { perspective: 1000px; }
.transform-style-3d { transform-style: preserve-3d; }
.rotate-y-180 { transform: rotateY(180deg); }
.backface-hidden { backface-visibility: hidden; }
.quiz-option-hover:hover { background-color: rgba(255, 255, 255, 0.1); }
.landing-card { background: rgba(17, 20, 39, 0.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); }
.chat-popup { position: fixed; bottom: 30px; right: 30px; z-index: 1000; animation: bounce 4s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } 60% { transform: translateY(-3px); } }

/* NEW: Loading animation for Brain Bolt */
@keyframes animate-load-line {
    from { width: 0%; }
    to { width: 100%; }
}
.loading-line {
    height: 4px;
    background: linear-gradient(90deg, #8070E0, #8DCEFF); 
    animation: animate-load-line 1.8s ease-out forwards; 
    border-radius: 2px;
    box-shadow: 0 0 8px #8DCEFF, 0 0 12px #8070E0; 
}

.status-message { position: fixed; top: 4rem; right: 1rem; z-index: 1000; opacity: 0; transform: translateY(-100px); transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
.status-message.visible { opacity: 1; transform: translateY(0); }
.confirm-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(2px); }

/* NEW: OMR STYLES */
.omr-sheet-bg { background-color: #fce4ec; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.omr-bubble { border: 2px solid #ad1457; transition: all 0.2s ease-in-out; }
.omr-bubble.selected { background-color: #0d47a1; border-color: #0d47a1; color: white; }
.omr-bubble.correct { border: 2px solid #2e7d32; background-color: #c8e6c9; }
.omr-bubble.incorrect { border: 2px solid #c62828; background-color: #ffcdd2; }
.omr-bubble.correct-answer { background-color: transparent; border: 3px solid #2e7d32; }
.pen-cursor { display: none; position: absolute; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-10px, -35px) rotate(-35deg); }

/* --- Goal Banner Animation --- */
.running-man-container {
    position: absolute;
    bottom: 8px; /* Positioned just above the bottom padding */
    left: 0;
    width: 100%;
    height: 30px; /* Height of the running man */
    transform: translateX(var(--progress-percent));
    transition: transform 1s ease-out;
}

.running-man {
    width: 30px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2334D399" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 17l5 4 1-4-4-3-1 3v2zM6 8l-2 3h2l2 3h2l-2-3-1-2z"/><circle cx="12" cy="4" r="2"/><path d="M12 6v12"/></svg>');
    background-size: cover;
    animation: run-anim 0.4s linear infinite;
    position: absolute;
    bottom: 0;
    left: -15px; /* Center the icon on the line */
}

.finish-line {
    position: absolute;
    bottom: 8px;
    right: 30px; /* Near the end */
    width: 10px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FBBF24" stroke="%23FBBF24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 17l5 4 1-4-4-3-1 3v2zM6 8l-2 3h2l2 3h2l-2-3-1-2z"/><circle cx="12" cy="4" r="2"/><path d="M12 6v12"/></svg>'); /* Re-using man as a "goal" icon, but in yellow */
    opacity: 0.5;
}

/* Simple running keyframes */
@keyframes run-anim {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

/* --- End of Goal Banner Animation --- */


/* --- NEW: Alarm Modal --- */
.alarm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000; /* Above confirm modal */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
}
.alarm-modal-content {
    background: rgba(20, 23, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem; /* 24px */
    padding: 2.5rem; /* 40px */
    max-width: 28rem; /* 448px */
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
@keyframes alarm-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 140, 75, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 140, 75, 1); }
}
.alarm-button {
    animation: alarm-pulse 1.5s infinite ease-in-out;
}

/* --- NEW: Candle Timer --- */
.candle-container {
    width: 30px;
    height: 50px;
    position: relative;
}
.candle-body {
    width: 100%;
    height: 100%;
    background: #f0e68c; /* Khaki */
    border: 2px solid #333;
    border-bottom: 5px solid #333;
    border-radius: 3px 3px 0 0;
    position: absolute;
    bottom: 0;
    transform-origin: bottom;
    /* Animation will be set via inline style */
}
@keyframes burnDown {
    from { height: 100%; }
    to { height: 5%; } /* Leave a small stub */
}
.candle-flame {
    width: 8px;
    height: 15px;
    background: #ff8c4b; /* Orange */
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    top: -15px; /* Sits on top of the body */
    left: 50%;
    transform: translateX(-50%);
    animation: flicker 1s infinite alternate;
    box-shadow: 0 0 10px #ff8c4b, 0 0 15px #ff8c4b;
}
@keyframes flicker {
    0% { transform: translateX(-50%) scaleY(1) scaleX(1); opacity: 1; }
    50% { transform: translateX(-45%) scaleY(0.9) scaleX(1.1); opacity: 0.8; }
    100% { transform: translateX(-55%) scaleY(1.1) scaleX(0.9); opacity: 1; }
}

/* --- NEW: Focus View Styles --- */
.focus-view-container {
  position: fixed;
  inset: 0;
  z-index: 100; /* High z-index to cover everything */
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out; /* Smooth wallpaper change */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.focus-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0); /* Dark overlay for text contrast */
  backdrop-filter: blur(0px);
}
.focus-view-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fade-in 0.8s ease-out;
}
.focus-timer-main {
  font-size: 10rem; /* 160px */
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}
.focus-timer-checkin {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* --- NEW: Liquid Timer Text --- */
@keyframes liquid-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.liquid-timer-text {
  background: linear-gradient(90deg, #8070E0, #80CEFF, #ff8c4b, #8070E0);
  background-size: 300% 300%;
  
  /* Background clip properties */
  -webkit-background-clip: text;
  background-clip: text;
  
  /* Text color properties */
  -webkit-text-fill-color: transparent; /* Fallback for older WebKit */
  color: transparent;                /* The standard property */
  
  animation: liquid-flow 10s ease infinite;
}


@media (min-width: 768px) {
    .sidebar { width: 250px; }
    .main-content { width: calc(100% - 250px); }
}
/* POKER CARD STYLES */
.poker-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.2) inset;
    border: 8px solid white; /* The classic white border */
}

.poker-front {
    background-color: #f8fafc; /* Almost white */
    color: #1e293b; /* Dark text for readability */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px; /* Subtle dot pattern */
}

.poker-back {
    background: repeating-linear-gradient(
        45deg,
        #1e3a8a,
        #1e3a8a 10px,
        #1e40af 10px,
        #1e40af 20px
    ); /* Classic blue diagonal pattern */
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}