/* CSS Variables for Theme */
:root {
  --primary: #00bcd4;
  --accent: #9c27b0;
  --background: linear-gradient(135deg, #e0f7fa, #fce4ec);
  --text: #2c3e50;
  --hover: #ff6f61;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius: 20px;
}

[data-theme="dark"] {
  --primary: #00bcd4;
  --accent: #9c27b0;
  --background: linear-gradient(135deg, #1a1a2e, #16213e);
  --text: #f5f5f5;
  --hover: #ff6f61;
  --card-bg: rgba(30, 30, 46, 0.9);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Delius', cursive;
  color: var(--text);
  background: var(--background);
  transition: all 0.3s ease;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Delius', cursive;
  font-size: 1rem;
}

.btn.primary {
  background: var(--primary);
  color: white;
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn.primary:hover {
  background: var(--hover);
}

.btn.secondary:hover {
  background: var(--primary);
  color: white;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(30, 30, 46, 0.9);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
}

.nav-logo i {
  margin-right: 10px;
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.nav-btn {
  padding: 8px 20px;
  border-radius: 50px;
}

.nav-link.nav-btn.primary {
  background: var(--primary);
  color: white;
}

.theme-toggle {
  margin-left: 20px;
}

.theme-checkbox {
  display: none;
}

.theme-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 60px;
  height: 30px;
  background: var(--text);
  border-radius: 50px;
  padding: 5px;
  position: relative;
  cursor: pointer;
}

.theme-label i {
  font-size: 14px;
  color: var(--card-bg);
  z-index: 1;
}

.theme-ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--card-bg);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.theme-checkbox:checked + .theme-label .theme-ball {
  transform: translateX(30px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-image {
  flex: 1;
  position: relative;
  height: 500px;
}

.floating-card {
  position: absolute;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  transition: all 0.5s ease;
  animation: float 6s ease-in-out infinite;
}

.floating-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.floating-card span {
  font-size: 0.9rem;
  text-align: center;
}

.card-1 {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.card-2 {
  top: 0;
  right: 0;
  animation-delay: 1s;
}

.card-3 {
  bottom: 0;
  left: 0;
  animation-delay: 2s;
}

.card-4 {
  bottom: 0;
  right: 0;
  animation-delay: 3s;
}

.dashboard-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 200px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-header {
  height: 30px;
  background: var(--primary);
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.preview-dots {
  display: flex;
  gap: 5px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
}

.preview-content {
  padding: 20px;
  display: flex;
  height: calc(100% - 30px);
}

.preview-chart {
  flex: 1;
  background: linear-gradient(to top, var(--primary), transparent);
  border-radius: 10px;
  margin-right: 15px;
}

.preview-stats {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 80px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  margin-top: 5px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.feature-card p {
  opacity: 0.8;
  line-height: 1.6;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

.about-image {
  flex: 1;
  position: relative;
  height: 400px;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.main-image {
  width: 300px;
  height: 300px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.main-image i {
  font-size: 8rem;
  color: white;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  animation: float 8s ease-in-out infinite;
}

.el-1 {
  width: 100px;
  height: 100px;
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.el-2 {
  width: 70px;
  height: 70px;
  top: 50px;
  right: 0;
  animation-delay: 2s;
}

.el-3 {
  width: 120px;
  height: 120px;
  bottom: 0;
  left: 50px;
  animation-delay: 4s;
}

/* Contact Section */
.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-details h3 {
  margin-bottom: 5px;
  color: var(--primary);
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-family: 'Delius', cursive;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Footer */
.footer {
  background: var(--card-bg);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-logo i {
  margin-right: 10px;
}

.footer-section p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--hover);
  transform: translateY(-5px);
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

.animate-fade-down {
  animation: fadeDown 1s ease forwards;
  opacity: 0;
}

.animate-fade-up {
  animation: fadeUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.animate-zoom-in {
  animation: zoomIn 1s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

.animate-slide-left {
  animation: slideLeft 1s ease forwards;
  opacity: 0;
}

.animate-slide-right {
  animation: slideRight 1s ease forwards;
  opacity: 0;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .stats {
    justify-content: space-around;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--card-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    gap: 30px;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-card {
    width: 100px;
    height: 100px;
  }
  
  .floating-card i {
    font-size: 1.5rem;
  }
  
  .floating-card span {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .dashboard-preview {
    width: 250px;
    height: 150px;
  }
}




/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  gap: 50px;
}

.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 450px;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.back-home {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-home:hover {
  background: var(--hover);
  transform: translateX(-5px);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
}

.auth-logo i {
  margin-right: 10px;
  font-size: 2rem;
}

.auth-header h2 {
  margin-bottom: 10px;
  color: var(--primary);
}

.auth-header p {
  opacity: 0.8;
}

.auth-form .form-group {
  margin-bottom: 20px;
  position: relative;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.auth-form input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-family: 'Delius', cursive;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  padding-right: 45px;
}

.auth-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 40px;
  cursor: pointer;
  color: var(--text);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  opacity: 1;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  width: auto;
  margin-right: 8px;
}

.forgot-password {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: var(--hover);
}

.auth-btn {
  width: 100%;
  margin-bottom: 20px;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 25px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 45%;
  height: 1px;
  background: var(--text);
  opacity: 0.3;
}

.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 45%;
  height: 1px;
  background: var(--text);
  opacity: 0.3;
}

.auth-divider span {
  background: var(--card-bg);
  padding: 0 15px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.social-auth {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.social-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: 'Delius', cursive;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.auth-footer {
  text-align: center;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  color: var(--hover);
}

.auth-decoration {
  flex: 1;
  position: relative;
  height: 500px;
  display: none;
}

.decoration-item {
  position: absolute;
  border-radius: var(--radius);
  background: var(--primary);
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.item-1 {
  width: 200px;
  height: 200px;
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.item-2 {
  width: 150px;
  height: 150px;
  top: 50px;
  right: 0;
  animation-delay: 2s;
}

.item-3 {
  width: 100px;
  height: 100px;
  bottom: 0;
  left: 50px;
  animation-delay: 4s;
}

.floating-study-icons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.floating-study-icons i {
  font-size: 3rem;
  color: var(--primary);
  animation: float 6s ease-in-out infinite;
}

.floating-study-icons i:nth-child(1) {
  animation-delay: 0s;
}

.floating-study-icons i:nth-child(2) {
  animation-delay: 1.5s;
}

.floating-study-icons i:nth-child(3) {
  animation-delay: 3s;
}

.floating-study-icons i:nth-child(4) {
  animation-delay: 4.5s;
}

@media (min-width: 992px) {
  .auth-decoration {
    display: block;
  }
}



/* Dashboard Styles */
.dashboard {
  padding: 100px 0 50px;
  min-height: 100vh;
}

/* Welcome Section */
.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 30px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.welcome-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.welcome-content h1 span {
  color: var(--accent);
}

.welcome-content p {
  font-size: 1.2rem;
  opacity: 0.8;
}

.date-display {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: 1.8rem;
  color: white;
}

.stat-info h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  opacity: 0.8;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-change {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
  font-size: 1.5rem;
  color: var(--primary);
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: var(--hover);
}

.card-content {
  padding: 25px;
}

/* Progress Chart */
.progress-card {
  grid-column: 1;
  grid-row: 1;
}

#progressChart {
  width: 100%;
  height: 300px;
}

/* Actions Card */
.actions-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  border-radius: 15px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  text-align: center;
}

.action-item:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.action-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.action-item:hover .action-icon {
  background: white;
}

.action-icon i {
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
}

.action-item:hover .action-icon i {
  color: var(--primary);
}

.action-item span {
  font-weight: bold;
  font-size: 0.9rem;
}

/* Activity Card */
.activity-card {
  grid-column: 1;
  grid-row: 2;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon.completed {
  background: #4caf50;
}

.activity-icon.uploaded {
  background: #2196f3;
}

.activity-icon.generated {
  background: #9c27b0;
}

.activity-icon i {
  color: white;
  font-size: 0.9rem;
}

.activity-details {
  flex: 1;
}

.activity-details p {
  margin-bottom: 5px;
  font-weight: bold;
}

.activity-time {
  font-size: 0.8rem;
  opacity: 0.7;
}

.activity-score {
  font-weight: bold;
  color: #4caf50;
}

/* Tasks Card */
.tasks-card {
  grid-column: 1;
  grid-row: 3;
}

.tasks-list {
  margin-bottom: 20px;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.task-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .task-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.task-checkbox {
  position: relative;
}

.task-checkbox input {
  display: none;
}

.task-checkbox label {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: block;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.task-checkbox input:checked + label {
  background: var(--primary);
}

.task-checkbox input:checked + label::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.8rem;
}

.task-details {
  flex: 1;
}

.task-details p {
  margin-bottom: 5px;
  font-weight: bold;
}

.task-due {
  font-size: 0.8rem;
  opacity: 0.7;
}

.task-priority {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.task-priority.high {
  background: #f44336;
}

.task-priority.medium {
  background: #ff9800;
}

.task-priority.low {
  background: #4caf50;
}

.tasks-progress {
  display: flex;
  align-items: center;
  gap: 15px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="dark"] .progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.tasks-progress span {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--primary);
}

/* Chat Widget */
.chat-widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--primary);
  color: white;
}

.chat-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.chat-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-toggle:hover {
  transform: rotate(180deg);
}

.chat-content {
  padding: 25px;
}

.chat-messages {
  height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 10px;
}

.message {
  display: flex;
  margin-bottom: 15px;
}

.message.ai-message {
  flex-direction: row;
}

.message.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 10px;
}

.message-avatar i {
  color: white;
}

.message-content {
  max-width: 70%;
  padding: 15px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .message-content {
  background: rgba(255, 255, 255, 0.05);
}

.message.user-message .message-content {
  background: var(--primary);
  color: white;
}

.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 50px;
  background: var(--card-bg);
  color: var(--text);
  font-family: 'Delius', cursive;
  box-shadow: var(--shadow);
}

.send-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn:hover {
  background: var(--hover);
  transform: scale(1.1);
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Responsive Dashboard */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-card {
    grid-column: 1;
    grid-row: 2;
  }
  
  .activity-card {
    grid-row: 3;
  }
  
  .tasks-card {
    grid-row: 4;
  }
  
  .welcome-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .actions-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .dashboard {
    padding: 80px 0 30px;
  }
}

@media (max-width: 576px) {
  .actions-grid {
    grid-template-columns: 1fr;
  }
  
  .message-content {
    max-width: 85%;
  }
}



/* Notes Page Styles */
.notes-page {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Upload Section */
.upload-section {
    margin-bottom: 50px;
}

.upload-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-header h2 {
    color: var(--primary);
}

.upload-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.upload-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.upload-option.active {
    border-color: var(--primary);
    background: rgba(0, 188, 212, 0.1);
}

.upload-option i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.upload-option span {
    font-weight: bold;
}

.upload-option:hover {
    transform: translateY(-5px);
}

.upload-content {
    transition: all 0.3s ease;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--primary);
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-area.drag-over {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--accent);
}

.upload-area i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.upload-area h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.upload-area p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.upload-or {
    display: block;
    margin: 20px 0;
    opacity: 0.7;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.upload-progress .progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

[data-theme="dark"] .upload-progress .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.upload-progress .progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Form Styles */
.url-form,
.text-form {
    max-width: 500px;
    margin: 0 auto;
}

.url-form .form-group,
.text-form .form-group {
    margin-bottom: 20px;
}

.url-form label,
.text-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.url-form input,
.text-form input,
.text-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.url-form input:focus,
.text-form input:focus,
.text-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Notes Grid */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: var(--primary);
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-option {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-option.active,
.view-option:hover {
    background: var(--primary);
    color: white;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.notes-grid.list-view {
    grid-template-columns: 1fr;
}

.notes-grid.list-view .note-card {
    flex-direction: row;
    align-items: center;
}

.notes-grid.list-view .note-header {
    margin-right: 20px;
    margin-bottom: 0;
}

.notes-grid.list-view .note-content {
    flex: 1;
}

.note-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.note-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.note-type {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-type.pdf {
    background: #f44336;
}

.note-type.url {
    background: #2196f3;
}

.note-type.text {
    background: #4caf50;
}

.note-type.image {
    background: #ff9800;
}

.note-type i {
    color: white;
    font-size: 1.5rem;
}

.note-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

.note-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.2rem;
}

.note-content p {
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 30px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.empty-state p {
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: var(--primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-options {
        flex-direction: column;
        align-items: center;
    }
    
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .notes-grid.list-view .note-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notes-grid.list-view .note-header {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}


/* Summary Page Styles */
.summary-page {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.summary-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.input-card,
.output-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h2 {
    color: var(--primary);
    margin: 0;
}

.input-options {
    display: flex;
    gap: 10px;
}

.option-btn {
    padding: 8px 15px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Delius', cursive;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.option-btn.active,
.option-btn:hover {
    background: var(--primary);
    color: white;
}

.card-content {
    padding: 25px;
}

.input-content {
    display: none;
}

.input-content.active {
    display: block;
}

/* Text Input */
#notesText {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    font-size: 1rem;
    box-shadow: var(--shadow);
    resize: vertical;
    min-height: 200px;
    transition: all 0.3s ease;
}

#notesText:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.word-count {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* File Input */
.file-upload-area {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed var(--primary);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    background: rgba(0, 188, 212, 0.1);
}

.file-upload-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.file-upload-area h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.file-upload-area p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 10px;
    margin-top: 15px;
}

.selected-file i {
    color: var(--primary);
}

.btn.small {
    padding: 5px 15px;
    font-size: 0.8rem;
}

/* URL Input */
.url-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.url-input-area input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    box-shadow: var(--shadow);
}

.url-input-area input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

.url-preview {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

[data-theme="dark"] .url-preview {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.url-preview h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.preview-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Summary Actions */
.summary-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Summary Placeholder */
.summary-placeholder {
    text-align: center;
    padding: 60px 30px;
    color: var(--text);
    opacity: 0.7;
}

.summary-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.summary-placeholder h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Summary Content */
.summary-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .summary-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
}

.summary-text {
    line-height: 1.6;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.summary-text p {
    margin-bottom: 15px;
}

.summary-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

[data-theme="dark"] .summary-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.summary-tag {
    padding: 5px 12px;
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.summary-actions-full {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Loading Animation */
.summary-loading {
    text-align: center;
    padding: 60px 30px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 188, 212, 0.2);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.summary-loading h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Recent Summaries */
.recent-summaries {
    margin-top: 50px;
}

.summaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.summary-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.summary-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.summary-item-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.1rem;
}

.summary-date {
    font-size: 0.8rem;
    opacity: 0.7;
    white-space: nowrap;
}

.summary-item-content {
    margin-bottom: 15px;
}

.summary-item-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.summary-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .summary-container {
        grid-template-columns: 1fr;
    }
    
    .summaries-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .input-options {
        flex-direction: column;
        width: 100%;
    }
    
    .option-btn {
        justify-content: center;
    }
    
    .url-input-area {
        flex-direction: column;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-actions-full {
        flex-direction: column;
    }
    
    .summary-item-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-item-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}



/* Flashcards Page Styles */
.flashcards-page {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.flashcards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.generator-card,
.viewer-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Generator Styles */
.generator-options {
    display: flex;
    gap: 10px;
}

.option-btn {
    padding: 8px 15px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Delius', cursive;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.option-btn.active,
.option-btn:hover {
    background: var(--primary);
    color: white;
}

.generator-content {
    display: none;
}

.generator-content.active {
    display: block;
}

.ai-input textarea {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    font-size: 1rem;
    box-shadow: var(--shadow);
    resize: vertical;
    min-height: 150px;
    margin-bottom: 20px;
}

.ai-input textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

.generation-settings {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

[data-theme="dark"] .generation-settings {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.generation-settings h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.settings-grid {
    display: grid;
    gap: 20px;
}

.setting {
    display: flex;
    align-items: center;
    gap: 15px;
}

.setting label {
    min-width: 120px;
    font-weight: bold;
}

.setting input[type="range"] {
    flex: 1;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    outline: none;
}

[data-theme="dark"] .setting input[type="range"] {
    background: rgba(255, 255, 255, 0.1);
}

.setting input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.setting select {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    box-shadow: var(--shadow);
}

/* Manual Input */
.manual-input .form-group {
    margin-bottom: 20px;
}

.manual-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.manual-input input,
.manual-input textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    box-shadow: var(--shadow);
}

.manual-input input:focus,
.manual-input textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Flashcard Viewer */
.flashcard-viewer {
    text-align: center;
}

.flashcard {
    width: 100%;
    height: 300px;
    perspective: 1000px;
    margin-bottom: 30px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flashcard.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.card-front {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.card-back {
    background: var(--card-bg);
    color: var(--text);
    transform: rotateY(180deg);
}

.card-content-front h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card-hint {
    position: absolute;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-content-back h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.card-content-back p {
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Viewer Controls */
.viewer-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary);
    color: white;
}

.viewer-controls-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.control-prev,
.control-next {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.progress-info {
    flex: 1;
    text-align: center;
    max-width: 200px;
}

.progress-info span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary);
}

.progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Card Actions */
.card-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Delius', cursive;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn.success {
    background: #4caf50;
    color: white;
}

.action-btn.warning {
    background: #ff9800;
    color: white;
}

.action-btn.danger {
    background: #f44336;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Flashcards Stats */
.flashcards-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.flashcards-stats .stat-card {
    background: rgba(0, 188, 212, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.flashcards-stats .stat-card:hover {
    transform: translateY(-5px);
}

.flashcards-stats .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.flashcards-stats .stat-icon i {
    color: white;
    font-size: 1.2rem;
}

.flashcards-stats .stat-info h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.flashcards-stats .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

/* Sets Section */
.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.set-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.set-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.set-header {
    margin-bottom: 15px;
}

.set-header h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.set-date {
    font-size: 0.8rem;
    opacity: 0.7;
}

.set-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.set-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.set-stat i {
    color: var(--primary);
}

.set-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .flashcards-container {
        grid-template-columns: 1fr;
    }
    
    .flashcards-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .viewer-controls-full {
        flex-direction: column;
        gap: 15px;
    }
    
    .control-prev,
    .control-next {
        width: 100%;
        justify-content: center;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .flashcards-stats {
        grid-template-columns: 1fr;
    }
    
    .sets-grid {
        grid-template-columns: 1fr;
    }
}


/* To-Do Page Styles */
.todo-page {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.todo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    grid-template-areas: 
        "stats stats"
        "progress add"
        "tasks tasks"
        "deadlines deadlines";
}

.stats-section {
    grid-area: stats;
}

.progress-section {
    grid-area: progress;
}

.add-task-section {
    grid-area: add;
}

.tasks-section {
    grid-area: tasks;
}

.deadlines-section {
    grid-area: deadlines;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.stat-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

/* Progress Card */
.progress-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.progress-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .progress-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

#progressPercent {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.progress-bar-large {
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

[data-theme="dark"] .progress-bar-large {
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar-large .progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.progress-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 10px;
}

.progress-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.progress-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

/* Add Task Card */
.add-task-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.add-task-card .card-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .add-task-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.add-task-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.add-task-card .card-content {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Tasks Card */
.tasks-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tasks-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .tasks-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tasks-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-options select {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    box-shadow: var(--shadow);
}

.tasks-card .card-content {
    padding: 25px;
    min-height: 400px;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.task-item.completed {
    opacity: 0.7;
    border-left-color: #4caf50;
}

.task-item.completed .task-content h4 {
    text-decoration: line-through;
}

.task-checkbox {
    position: relative;
}

.task-checkbox input {
    display: none;
}

.task-checkbox label {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: block;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.task-checkbox input:checked + label {
    background: var(--primary);
}

.task-checkbox input:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
}

.task-content {
    flex: 1;
}

.task-content h4 {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1.1rem;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.task-subject {
    padding: 2px 8px;
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-weight: bold;
}

.task-priority {
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.priority-high {
    background: #f44336;
    color: white;
}

.priority-medium {
    background: #ff9800;
    color: white;
}

.priority-low {
    background: #4caf50;
    color: white;
}

.task-due {
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-due.overdue {
    color: #f44336;
    font-weight: bold;
}

.task-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

.task-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Deadlines Card */
.deadlines-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.deadlines-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .deadlines-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deadlines-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.deadlines-card .card-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.deadlines-card .card-content {
    padding: 25px;
}

.deadlines-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.deadline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid #ff9800;
}

.deadline-item.urgent {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.deadline-item:hover {
    transform: translateX(5px);
}

.deadline-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deadline-icon i {
    color: white;
    font-size: 1.2rem;
}

.deadline-content {
    flex: 1;
}

.deadline-content h4 {
    margin-bottom: 5px;
    color: var(--text);
}

.deadline-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.deadline-days {
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.7rem;
}

.days-urgent {
    background: #f44336;
    color: white;
}

.days-warning {
    background: #ff9800;
    color: white;
}

.days-normal {
    background: #4caf50;
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .todo-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "stats"
            "progress"
            "add"
            "tasks"
            "deadlines";
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .progress-details {
        grid-template-columns: 1fr;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tasks-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .task-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .task-actions {
        opacity: 1;
    }
}

/* Timer Page Styles */
.timer-page {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.timer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    grid-template-areas: 
        "display display"
        "settings session"
        "history history"
        "stats stats";
}

.timer-display-section {
    grid-area: display;
}

.settings-section {
    grid-area: settings;
}

.session-section {
    grid-area: session;
}

.history-section {
    grid-area: history;
}

.stats-section {
    grid-area: stats;
}

/* Timer Display */
.timer-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 40px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-background {
    fill: none;
    stroke: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .progress-ring-background {
    stroke: rgba(255, 255, 255, 0.1);
}

.progress-ring-circle {
    fill: none;
    stroke: var(--primary);
    stroke-dasharray: 879.2; /* 2 * π * 140 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-mode {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-display {
    font-size: 4rem;
    font-weight: bold;
    color: var(--text);
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.session-info {
    font-size: 1rem;
    opacity: 0.7;
    color: var(--text);
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Delius', cursive;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.control-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Settings Card */
.settings-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.settings-card .card-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .settings-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.settings-card .card-content {
    padding: 25px;
}

.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-group label {
    font-weight: bold;
    color: var(--text);
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.setting-control input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

[data-theme="dark"] .setting-control input[type="range"] {
    background: rgba(255, 255, 255, 0.1);
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-control input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--hover);
    transform: scale(1.1);
}

.setting-control span {
    min-width: 100px;
    font-weight: bold;
    color: var(--primary);
    text-align: right;
}

/* Sound Settings */
.sound-settings {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 25px;
}

[data-theme="dark"] .sound-settings {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sound-settings h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.sound-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sound-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sound-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.sound-option label {
    cursor: pointer;
    user-select: none;
}

/* Session Card */
.session-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.session-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .session-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.session-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

#currentTask {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.session-card .card-content {
    padding: 25px;
}

.task-selection {
    margin-bottom: 30px;
}

.task-selection h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.task-selection select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    font-size: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.task-selection select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

.session-progress h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-label {
    min-width: 150px;
    font-size: 0.9rem;
    color: var(--text);
}

.progress-item .progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .progress-item .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.progress-item .progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-value {
    min-width: 70px;
    font-weight: bold;
    color: var(--primary);
    text-align: right;
    font-size: 0.9rem;
}

/* History Card */
.history-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.history-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .history-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.history-card .card-content {
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.session-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.session-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.session-icon i {
    color: white;
    font-size: 1.2rem;
}

.session-content {
    flex: 1;
}

.session-content h4 {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1.1rem;
}

.session-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.session-duration {
    font-weight: bold;
    color: var(--primary);
}

.session-task {
    padding: 2px 8px;
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Stats Card */
.stats-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stats-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .stats-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.period-selector select {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    box-shadow: var(--shadow);
}

.stats-card .card-content {
    padding: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-item {
    background: rgba(0, 188, 212, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-icon i {
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

/* Timer Complete Modal */
#timerCompleteModal .modal-content {
    max-width: 500px;
}

.complete-content {
    text-align: center;
    padding: 20px 0;
}

.complete-content i {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.complete-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text);
}

.session-summary {
    background: rgba(0, 188, 212, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.session-summary h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.summary-stat {
    text-align: center;
}

.summary-stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.summary-stat .label {
    font-size: 0.8rem;
    opacity: 0.7;
}

.complete-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .timer-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "display"
            "settings"
            "session"
            "history"
            "stats";
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-display {
        font-size: 3rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .progress-label {
        min-width: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .session-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .complete-actions {
        flex-direction: column;
    }
    
    .complete-actions .btn {
        width: 100%;
    }
}

/* Animation for timer pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 188, 212, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0);
    }
}

.timer-card.pulse {
    animation: pulse 2s infinite;
}

/* History Page Styles */
.history-page {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.history-container {
    display: grid;
    gap: 30px;
    grid-template-areas: 
        "charts timeline"
        "sessions sessions"
        "achievements achievements";
}

.charts-section {
    grid-area: charts;
}

.timeline-section {
    grid-area: timeline;
}

.sessions-section {
    grid-area: sessions;
}

.achievements-section {
    grid-area: achievements;
}

/* Stats Overview */
.stats-overview {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.stat-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #4caf50;
}

/* Charts Section */
.charts-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.charts-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .charts-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.charts-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.chart-controls select {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    box-shadow: var(--shadow);
}

.charts-card .card-content {
    padding: 25px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.chart-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.chart-container h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1rem;
    text-align: center;
}

.chart-container canvas {
    width: 100% !important;
    height: 200px !important;
}

/* Timeline Section */
.timeline-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
}

.timeline-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .timeline-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.timeline-card .card-content {
    padding: 25px;
    max-height: 600px;
    overflow-y: auto;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.timeline-marker i {
    font-size: 0.8rem;
}

.timeline-content h4 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.1rem;
}

.timeline-content p {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.4;
}

.timeline-time {
    font-size: 0.8rem;
    opacity: 0.6;
    font-weight: bold;
}

/* Sessions Section */
.sessions-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sessions-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .sessions-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sessions-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.sessions-card .card-content {
    padding: 25px;
}

.sessions-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.sessions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sessions-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 0.9rem;
}

.sessions-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

[data-theme="dark"] .sessions-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sessions-table tr:last-child td {
    border-bottom: none;
}

.sessions-table tr:hover {
    background: rgba(0, 188, 212, 0.05);
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .table-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    padding: 8px 15px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Delius', cursive;
    font-weight: bold;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:not(:disabled):hover {
    background: var(--primary);
    color: white;
}

.pagination-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Achievements Section */
.achievements-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.achievements-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .achievements-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.achievements-card .card-header h2 {
    color: var(--primary);
    margin: 0;
}

.achievements-count {
    font-weight: bold;
    color: var(--primary);
    background: rgba(0, 188, 212, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.achievements-card .card-content {
    padding: 25px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.achievement-item.unlocked {
    border-left-color: #4caf50;
}

.achievement-item.locked {
    opacity: 0.6;
    border-left-color: #9e9e9e;
}

.achievement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.achievement-item.unlocked .achievement-icon {
    background: #4caf50;
}

.achievement-item.locked .achievement-icon {
    background: #9e9e9e;
}

.achievement-icon i {
    color: white;
    font-size: 1.5rem;
}

.achievement-content {
    flex: 1;
}

.achievement-content h4 {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 1.1rem;
}

.achievement-content p {
    margin-bottom: 8px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.achievement-date {
    font-size: 0.8rem;
    color: #4caf50;
    font-weight: bold;
}

.achievement-progress {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .history-container {
        grid-template-areas: 
            "charts"
            "timeline"
            "sessions"
            "achievements";
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .sessions-table-container {
        font-size: 0.8rem;
    }
    
    .sessions-table th,
    .sessions-table td {
        padding: 10px 8px;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -30px;
        width: 25px;
        height: 25px;
    }
    
    .timeline-marker i {
        font-size: 0.7rem;
    }
}

/* Signup Specific Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.password-strength {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

[data-theme="dark"] .strength-bar {
    background: rgba(255, 255, 255, 0.1);
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
    width: 0%;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
}

.benefit-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.benefit-item p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* AI Chat Widget Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.ai-chat-widget.active {
    transform: translateY(0);
    opacity: 1;
}

.ai-chat-widget.minimized {
    height: 60px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary);
    color: white;
    border-radius: 13px 13px 0 0;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.chat-title i {
    font-size: 1.2rem;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.chat-btn {
    width: 25px;
    height: 25px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 100%;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 0.8rem;
}

.user-message .message-avatar {
    background: var(--accent);
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
}

[data-theme="dark"] .message-content {
    background: rgba(255, 255, 255, 0.05);
}

.user-message .message-content {
    background: var(--primary);
    color: white;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 4px;
}

.typing .message-content {
    background: transparent;
    padding: 8px 15px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .chat-input {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    box-shadow: var(--shadow);
}

.chat-input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    background: var(--hover);
    transform: scale(1.05);
}

.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-toggle-btn:hover {
    background: var(--hover);
    transform: scale(1.1);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.quick-action-btn {
    padding: 10px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Delius', cursive;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 1rem;
}

/* Responsive Chat */
@media (max-width: 768px) {
    .ai-chat-widget {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}



/* Quiz Page Styles */
.quiz-page {
    padding: 100px 0 50px;
    min-height: 100vh;
}

.quiz-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.generator-card,
.quiz-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Quiz Source Options */
.quiz-source {
    margin-bottom: 25px;
}

.quiz-source h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.source-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.source-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.source-option.active {
    border-color: var(--primary);
    background: rgba(0, 188, 212, 0.1);
}

.source-option i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.source-option span {
    font-weight: bold;
    font-size: 0.9rem;
}

.source-option:hover {
    transform: translateY(-5px);
}

.source-content {
    display: none;
    margin-bottom: 25px;
}

.source-content.active {
    display: block;
}

/* Notes Selection */
.notes-selection h4,
.summary-selection h4,
.topic-input h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.notes-list,
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-item,
.summary-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.note-item.selected,
.summary-item.selected {
    border-color: var(--primary);
    background: rgba(0, 188, 212, 0.1);
}

.note-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.summary-item h5 {
    margin: 0 0 5px 0;
    color: var(--primary);
}

.summary-item span {
    font-size: 0.8rem;
    opacity: 0.7;
}

.topic-input input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    font-size: 1rem;
    box-shadow: var(--shadow);
}

.topic-input input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary);
}

/* Quiz Settings */
.quiz-settings {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    margin-bottom: 25px;
}

[data-theme="dark"] .quiz-settings {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-settings h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.settings-grid {
    display: grid;
    gap: 20px;
}

.setting {
    display: flex;
    align-items: center;
    gap: 15px;
}

.setting label {
    min-width: 150px;
    font-weight: bold;
}

.setting input[type="range"] {
    flex: 1;
    height: 5px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    outline: none;
}

[data-theme="dark"] .setting input[type="range"] {
    background: rgba(255, 255, 255, 0.1);
}

.setting input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.setting select {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Delius', cursive;
    box-shadow: var(--shadow);
}

.generate-quiz-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Quiz Timer */
.quiz-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-weight: bold;
}

.quiz-timer.warning {
    background: #ff9800;
    animation: pulse 1s infinite;
}

.quiz-timer.danger {
    background: #f44336;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Quiz Instructions */
.quiz-instructions {
    text-align: center;
    padding: 40px 30px;
}

.instructions-content i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.instructions-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.instructions-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.instructions-content ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.instructions-content li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.instructions-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Quiz Progress */
.quiz-progress {
    margin-bottom: 25px;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.progress-header span {
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Question Container */
.question-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .question-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.question-header h3 {
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

[data-theme="dark"] .option {
    border-color: rgba(255, 255, 255, 0.1);
}

.option:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.option.selected {
    border-color: var(--primary);
    background: rgba(0, 188, 212, 0.1);
}

.option.correct {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.option.incorrect {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.option input {
    margin-right: 15px;
    transform: scale(1.2);
}

.option-label {
    font-weight: bold;
    margin-right: 10px;
    color: var(--primary);
    min-width: 30px;
}

.option-text {
    flex: 1;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Quiz Results */
.quiz-results {
    text-align: center;
    padding: 30px;
}

.results-header {
    margin-bottom: 30px;
}

.results-header i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.results-header h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.score-display small {
    font-size: 1.5rem;
    opacity: 0.7;
}

.results-chart {
    max-width: 200px;
    margin: 0 auto 30px;
    height: 200px;
}

.results-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.result-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Quiz History */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.history-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.history-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.2rem;
}

.history-date {
    font-size: 0.8rem;
    opacity: 0.7;
    white-space: nowrap;
}

.history-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-badge {
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.score-high {
    background: #4caf50;
}

.score-medium {
    background: #ff9800;
}

.score-low {
    background: #f44336;
}

.history-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .quiz-container {
        grid-template-columns: 1fr;
    }
    
    .source-options {
        grid-template-columns: 1fr;
    }
    
    .results-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .setting {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .setting label {
        min-width: auto;
    }
    
    .question-actions {
        flex-direction: column;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
    }
    
    .history-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .history-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Utility Classes */
.btn.success {
    background: #4caf50;
    color: white;
}

.btn.success:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn.warning {
    background: #ff9800;
    color: white;
}

.btn.warning:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.btn.danger {
    background: #f44336;
    color: white;
}

.btn.danger:hover {
    background: #da190b;
    transform: translateY(-2px);
}




/* Whiteboard Page Styles */
.whiteboard-page {
    padding: 100px 0 30px;
    min-height: 100vh;
}

.whiteboard-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    height: calc(100vh - 180px);
}

/* Canvas Section */
.canvas-section {
    display: flex;
    flex-direction: column;
}

.whiteboard-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.whiteboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
}

[data-theme="dark"] .whiteboard-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.whiteboard-card .card-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.4rem;
}

.canvas-actions {
    display: flex;
    gap: 12px;
}

.whiteboard-card .card-content {
    flex: 1;
    padding: 0;
    background: #f8f9fa;
}

[data-theme="dark"] .whiteboard-card .card-content {
    background: #2d3748;
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    overflow: hidden;
}

[data-theme="dark"] .canvas-container {
    background: #1a202c;
}

#whiteboardCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    background: white;
}

[data-theme="dark"] #whiteboardCanvas {
    background: #1a202c;
}

.canvas-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    z-index: 1;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .canvas-overlay {
    background: rgba(45, 55, 72, 0.9);
    color: #cbd5e0;
}

.canvas-overlay i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
    display: block;
}

.canvas-overlay p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.canvas-overlay small {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Toolbar Sidebar */
.toolbar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

.toolbar-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    flex: 1;
    overflow-y: auto;
}

.toolbar-section {
    margin-bottom: 30px;
}

.toolbar-section:last-child {
    margin-bottom: 0;
}

.toolbar-section h3 {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.toolbar-section h3 i {
    font-size: 1rem;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 5px;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border: 2px solid var(--primary);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: bold;
}

.tool-btn.active,
.tool-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.tool-btn i {
    font-size: 1.2rem;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn.active,
.color-btn:hover {
    border-color: var(--text);
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.color-picker label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text);
    min-width: 100px;
}

.color-picker input[type="color"] {
    width: 50px;
    height: 50px;
    border: 3px solid var(--text);
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

.color-picker input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

/* Brush Controls */
.brush-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.brush-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#brushSizeValue {
    font-weight: bold;
    color: var(--primary);
    font-size: 0.9rem;
}

.brush-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brush-sample {
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--text);
}

.brush-controls input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

[data-theme="dark"] .brush-controls input[type="range"] {
    background: rgba(255, 255, 255, 0.1);
}

.brush-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.template-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid var(--primary);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: bold;
    text-align: left;
}

.template-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.template-btn i {
    font-size: 1.1rem;
    width: 20px;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 30px 50px;
    border: 2px solid var(--primary);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: bold;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 1rem;
}

/* Saved Whiteboards */
.saved-whiteboards {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.saved-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.saved-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.saved-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.saved-item:hover {
    transform: translateX(3px);
    background: rgba(0, 188, 212, 0.1);
}

.saved-thumbnail {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .saved-thumbnail {
    border-color: rgba(255, 255, 255, 0.1);
    background: #2d3748;
}

.thumbnail-placeholder {
    color: var(--primary);
    font-size: 1.2rem;
}

.saved-info {
    flex: 1;
}

.saved-info h4 {
    margin: 0 0 4px 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: bold;
}

.saved-date {
    font-size: 0.75rem;
    opacity: 0.7;
}

.saved-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text);
    opacity: 0.7;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: var(--primary);
}

.empty-state p {
    margin: 0 0 5px 0;
    font-weight: bold;
}

.empty-state small {
    font-size: 0.8rem;
}

/* Modal Styles */
#saveModal .modal-content {
    max-width: 500px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.form-actions .btn {
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .whiteboard-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .toolbar-sidebar {
        order: -1;
    }
    
    .toolbar-card {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .whiteboard-container {
        gap: 20px;
    }
    
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .color-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .saved-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .saved-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for toolbar */
.toolbar-card {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Canvas Grid Pattern */
.canvas-container.with-grid {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

[data-theme="dark"] .canvas-container.with-grid {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
}





















