/* src/pages/StudentDashboard.css */

.dashboard-container {
  padding: 0;
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.welcome-section h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: 700;
}

.welcome-section p {
  margin: 0;
  opacity: 0.95;
  font-size: 16px;
}

.btn-new-project {
  background: white;
  color: #667eea;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.btn-new-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-card.total {
  border-left-color: #667eea;
}

.stat-card.planning {
  border-left-color: #ffa726;
}

.stat-card.progress {
  border-left-color: #29b6f6;
}

.stat-card.completed {
  border-left-color: #66bb6a;
}

.stat-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6fa;
  border-radius: 12px;
}

.stat-info h3 {
  margin: 0 0 5px 0;
  font-size: 32px;
  font-weight: 700;
  color: #333;
}

.stat-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Dashboard Section */
.dashboard-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.btn-view-all {
  background: transparent;
  color: #667eea;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view-all:hover {
  color: #764ba2;
  transform: translateX(5px);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #333;
}

.empty-state p {
  margin: 0 0 30px 0;
  color: #666;
  font-size: 16px;
}

.btn-create {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Projects Preview */
.projects-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-preview-card {
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.project-preview-card:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.project-preview-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-preview-content {
  padding: 20px;
}

.project-preview-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
}

.project-category {
  color: #667eea;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.project-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.project-preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.planning {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge.in-progress {
  background: #e3f2fd;
  color: #1976d2;
}

.status-badge.completed {
  background: #e8f5e9;
  color: #388e3c;
}

.status-badge.on-hold {
  background: #fce4ec;
  color: #c2185b;
}

.btn-view {
  background: transparent;
  color: #667eea;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view:hover {
  color: #764ba2;
}

/* ===========================
   CALENDAR SECTION STYLES
   =========================== */

.calendar-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.calendar-section h2 {
  margin: 0 0 25px 0;
  font-size: 24px;
  color: #333;
}

.calendar-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calendar-wrapper {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
}

/* React Calendar Customization */
.react-calendar {
  width: 100%;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  font-family: inherit;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.react-calendar__navigation {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin-bottom: 0;
}

.react-calendar__navigation button {
  color: white;
  font-size: 18px;
  font-weight: 600;
  padding: 15px;
}

.react-calendar__navigation button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.react-calendar__navigation button:disabled {
  background: transparent;
  opacity: 0.5;
}

.react-calendar__month-view__weekdays {
  background: #f5f6fa;
  padding: 10px 0;
  font-weight: 600;
  color: #667eea;
  font-size: 14px;
}

.react-calendar__tile {
  padding: 15px 10px;
  font-size: 14px;
  position: relative;
  transition: all 0.3s ease;
}

.react-calendar__tile:hover {
  background: #e8ebff;
}

.react-calendar__tile--active {
  background: #667eea !important;
  color: white;
}

.react-calendar__tile--now {
  background: #fff3e0;
  font-weight: 600;
}

.react-calendar__tile.has-deadline {
  background: #e8f5e9;
  font-weight: 600;
}

.deadline-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 10px;
}

/* Calendar Legend */
.calendar-legend {
  margin-top: 15px;
  padding: 15px;
  background: white;
  border-radius: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.legend-dot {
  font-size: 18px;
}

/* Calendar Details Panel */
.calendar-details {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  min-height: 400px;
}

.calendar-details h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #333;
  padding-bottom: 15px;
  border-bottom: 2px solid #667eea;
}

.date-projects h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #666;
}

.deadline-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.deadline-item:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.deadline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.deadline-header h5 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.deadline-category {
  color: #667eea;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.deadline-description {
  color: #666;
  font-size: 14px;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.btn-view-deadline {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view-deadline:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.no-deadlines {
  text-align: center;
  padding: 60px 20px;
}

.no-deadlines p {
  color: #999;
  font-size: 16px;
}

/* Quick Actions */
.quick-actions {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-actions h2 {
  margin: 0 0 25px 0;
  font-size: 24px;
  color: #333;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.action-card {
  padding: 25px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.action-card:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.action-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.action-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
}

.action-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .calendar-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .welcome-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .welcome-section h1 {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .projects-preview {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .calendar-container {
    grid-template-columns: 1fr;
  }

  .react-calendar__tile {
    padding: 10px 5px;
    font-size: 12px;
  }
}
