* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0;
  left: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.logo-icon i {
  font-size: 1.8rem;
  color: white;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo span {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  padding: 8px 0;
  transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #a855f7;
  border-bottom: 2px solid #a855f7;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #a855f7;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  color: white;
  font-family: inherit;
}

.btn-outline:hover {
  background: #a855f7;
  color: white;
  transform: translateY(-2px);
}

/* Main Content */
.main {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 40px 0;
}

/* Chat Container */
.chat-container {
  flex: 2;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.chat-box {
  height: 450px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 10px;
}

.chat-box::-webkit-scrollbar {
  width: 6px;
}

.chat-box::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.chat-box::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 10px;
}

.message {
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 16px;
  max-width: 85%;
  word-wrap: break-word;
}

.user {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  margin-left: auto;
  text-align: right;
}

.bot {
  background: rgba(51, 65, 85, 0.9);
  margin-right: auto;
}

/* Input Area */
.input-area {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input-area input[type="text"] {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 40px;
  background: rgba(0,0,0,0.3);
  color: white;
  font-family: inherit;
  font-size: 1rem;
}

.input-area input[type="text"]:focus {
  outline: none;
  border-color: #a855f7;
}

.input-area input[type="file"] {
  background: rgba(0,0,0,0.3);
  padding: 12px 16px;
  border-radius: 40px;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
}

.input-area input[type="file"]::-webkit-file-upload-button {
  background: #a855f7;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  cursor: pointer;
  margin-right: 10px;
}

.input-area button {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  font-family: inherit;
}

.input-area button:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

/* AI Panel */
.ai-panel {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.ai-panel .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.ai-panel .avatar i {
  font-size: 3rem;
  color: white;
}

.ai-panel h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.ai-panel p {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.95rem;
}

.features-list {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: 0.2s;
}

.feature-item:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: translateX(5px);
}

.feature-item i {
  width: 30px;
  color: #a855f7;
  font-size: 1.2rem;
}

.feature-item span {
  color: #e2e8f0;
  font-size: 0.9rem;
}

/* Students Section */
.students {
  margin: 60px 0 40px;
  text-align: center;
}

.students h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.student-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.student-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  width: 200px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.2s;
}

.student-card:hover {
  transform: translateY(-5px);
  border-color: #a855f7;
}

.student-card i {
  font-size: 2.5rem;
  color: #a855f7;
  margin-bottom: 15px;
}

.student-card h4 {
  font-size: 1rem;
  color: #fff;
}

/* Study Card */
.study-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.study-card h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.progress-container {
  width: 100%;
  height: 12px;
  background: #334155;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #a855f7);
  transition: width 1s linear;
}

#time {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
  font-family: monospace;
}

.time-input {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.time-input input {
  padding: 10px;
  border-radius: 40px;
  border: none;
  width: 100px;
  text-align: center;
  background: rgba(0,0,0,0.3);
  color: white;
  font-size: 1rem;
}

.time-input button {
  background: #22c55e;
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.time-input button:hover {
  transform: scale(1.05);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.buttons button {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  border-radius: 40px;
  background: #22c55e;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}

.buttons button:hover {
  transform: scale(1.05);
}

.streak {
  margin: 20px 0;
  font-size: 18px;
}

.streak-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background: #f59e0b;
  border: none;
  border-radius: 40px;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}

.streak-btn:hover {
  transform: scale(1.05);
  background: #d97706;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .navbar {
    flex-direction: column;
    text-align: center;
  }
  
  .main {
    flex-direction: column;
  }
  
  .chat-container {
    order: 2;
  }
  
  .ai-panel {
    order: 1;
  }
  
  .student-card {
    width: 100%;
    max-width: 200px;
  }
  
  .buttons {
    flex-direction: column;
  }
  
  .buttons button {
    width: 100%;
  }
}