* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
}

/* Left Panel Styles */
.left-panel {
  width: 50%;
    background: linear-gradient(150deg, #6366F1, #EC4899);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.left-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(135deg, rgba(0,0,0,0.05) 1px, transparent 1px),
                    linear-gradient(45deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  transform: rotate(-10deg) scale(2.5);
  transform-origin: bottom left;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
}

.star-icon {
  margin-bottom: 2rem;
}

h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.wave {
  font-size: 3.5rem;
  margin-left: 0.5rem;
}

.left-panel p {
  font-size: 1.25rem;
  max-width: 90%;
  line-height: 1.6;
}

.footer {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Right Panel Styles */
.right-panel {
  width: 50%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.login-container {
  width: 70%;
  max-width: 450px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.create-account {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.create-account a {
  color: #000;
  font-weight: 500;
  text-decoration: none;
}

.form-group {
  margin-bottom: 1.2rem;
}

input, select {
  width: 100%;
  padding: 0.8rem 0;
  border: none;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

select {
  background-color: white;
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid #ddd;
}

input:focus, select:focus {
  border-color: #3b44c5;
}

.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.remember-me input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.login-btn {
  width: 100%;
  background-color: #1a1a1a;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #000;
}

.google-btn,
.email-btn {
  width: 100%;
  background-color: white;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.google-btn:hover {
  background-color: #f5f5f5;
}

.google-btn img,
.email-btn img {
  height: 18px;
  margin-right: 0.5rem;
}

.forgot-password {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}

.forgot-password a {
  color: #000;
  font-weight: 500;
  text-decoration: none;
}

.error-message {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  border: 1px solid #f87171;
}

.success-message {
  background-color: #d1fae5;
  color: #047857;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  border: 1px solid #6ee7b7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .left-panel, .right-panel {
    width: 100%;
  }
  
  .left-panel {
    min-height: 60vh;
  }
  
  .login-container {
    width: 85%;
    padding: 2rem 0;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

/* Dashboard Styles */
.dashboard-container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 280px;
  background-color: #3b44c5;
  color: white;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: white;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 600;
}

.main-content {
  flex: 1;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 2rem;
  overflow-y: auto;
  background-color: #f8f9fa;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #212529;
  font-family: 'Arial', serif;
}

.welcome-card {
  background-color: white;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.welcome-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: #212529;
  font-family: 'Arial', serif;
}

.welcome-card p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #343a40;
}

.class-info {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.class-info-item {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.class-info-item .card-title {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.class-info-item div:last-child {
  font-size: 1.2rem;
  font-weight: 600;
  color: #212529;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: #3b44c5;
  color: white;
  box-shadow: 0 4px 10px rgba(59, 68, 197, 0.2);
}

.btn-primary:hover {
  background-color: #333db8;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 68, 197, 0.25);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid #dee2e6;
  color: #495057;
}

.btn-outline:hover {
  background-color: #f8f9fa;
  border-color: #ced4da;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

/* Statistics Section */
.stats-container {
  margin-bottom: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background-color: white;
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-icon.success {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.stat-icon.primary {
  background-color: rgba(59, 68, 197, 0.1);
  color: #3b44c5;
}

.stat-icon.warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.stat-icon.danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.stat-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-value.success {
  color: #198754;
}

.stat-value.primary {
  color: #3b44c5;
}

.stat-value.warning {
  color: #fd7e14;
}

.stat-value.danger {
  color: #dc3545;
}

/* Class Statistics */
.class-stats {
  margin-bottom: 2.5rem;
}

.class-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.class-stat-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.class-stat-card:hover {
  background-color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.class-stat-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.class-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #198754;
}

.class-stat-value .no-data {
  font-size: 1rem;
  color: #adb5bd;
  font-style: italic;
  font-weight: 400;
}

.timetable {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  margin-top: 1.5rem;
}

.day {
  background-color: white;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 180px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.today {
  background-color: #f0f2ff;
  border-top: 4px solid #3b44c5;
}

.day-title {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exam {
  background-color: #e8eaff;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 3px solid #3b44c5;
}

.exam-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
}

.exam-detail {
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
  color: #6c757d;
  font-size: 0.85rem;
}

.no-exams {
  color: #adb5bd;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 10px;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.user-role {
  font-size: 0.8rem;
  opacity: 0.7;
}

.logout {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.delete-section {
  margin-top: 3rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

@media (max-width: 1200px) {
  .stats-grid,
  .class-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .timetable {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    padding: 1.5rem;
  }
  
  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-item {
    width: auto;
  }
  
  .timetable {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .welcome-card {
    padding: 1.5rem;
  }
  
  .class-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stats-grid,
  .class-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .timetable {
    grid-template-columns: 1fr;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
}

/* Hover card for statistics */
.stat-card {
  position: relative;
}

/* .hover-content {
/*  display: none;
/*  position: absolute;
/*  top: 100%;
/*  left: 50%;
/*  transform: translateX(-50%);
/*  width: 240px;
/*  background-color: white;
/*  border-radius: 12px;
/*  padding: 1.5rem;
/*  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
/*  z-index: 10;
/*  margin-bottom: 15px;
/*  text-align: left;
/*border: 1px solid rgba(0, 0, 0, 0.05);
}

.hover-content::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

.hover-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #495057;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.5rem;
}

.class-results {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.class-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.class-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
}

.class-grade {
  font-size: 1rem;
  font-weight: 600;
  color: #198754;
}

.stat-card:hover .hover-content {
  display: block;
}*/

.delete-profile-form {
  margin: 0.5rem 0;
}

.delete-profile {
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(220, 53, 69, 0);
  border: none;
  width: 100%;
  font-size: 0.95rem;
  cursor: pointer;
}

.delete-profile:hover {
  background-color: rgba(255, 0, 0, 0.9);
  color: white;
}

.profile-header {
    position: relative;
    margin: -2rem -2rem 2rem -2rem;
}

.profile-cover {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to right, #e6e9f0 0%, #eef1f5 100%);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header {
    position: relative;
    margin: -2rem -2rem 2rem -2rem;
}

.profile-cover {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to right, #e6e9f0 0%, #eef1f5 100%);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Add this overlay to improve text readability */
.profile-cover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    z-index: 1;
}

.profile-info-header {
    padding: 0 2rem;
    margin-top: -4.5rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.5rem;
    z-index: 2; /* Ensure this is above the overlay */
}

.profile-avatar-large {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #9b87f5 0%, #6E59A5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
}

.profile-title-section {
    flex: 1;
    padding-bottom: 1rem;
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff; /* Changed to white for better contrast */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); /* Add text shadow for better readability */
}

.profile-role {
    color: #f1f1f1; /* Lighter color for better visibility */
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Add text shadow for better readability */
}

.profile-stats {
    display: flex;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-weight: 600;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.profile-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.profile-card h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f1f1;
}

.contact-info, .security-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.info-label {
    font-size: 0.9rem;
    color: #8E9196;
    font-weight: 500;
}

.info-value {
    font-size: 1.05rem;
    color: #1a1a1a;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #8E9196;
    font-weight: 500;
}

.danger-zone {
    border: 1px solid #fee2e2;
    background-color: #fff5f5;
}

.danger-text {
    color: #dc2626;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
}

.alert-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.text-error {
    color: #dc2626;
}

.text-success {
    color: #16a34a;
}

.security-warning {
    font-size: 0.8rem;
    color: #dc2626;
    margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar-large {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .profile-actions {
        width: 100%;
        justify-content: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-content {
        grid-template-columns: 1fr;
        padding: 0;
    }
}
