/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Body */
body {
  background: linear-gradient(120deg, #e0eafc, #cfdef3);
  color: #333;
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  background: #2b5876;
  color: white;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.1) rotate(5deg);
}

.profile-info h2 {
  margin-bottom: 5px;
}


/* Layout */
.container {
  display: flex;
  min-height: calc(100vh - 120px);
}

/* Sidebar */
.sidebar {
  width: 200px;
  background: #4e4376;
  padding: 20px 0;
  color: white;
  box-shadow: 4px 0 8px rgba(0,0,0,0.1);
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  transition: background 0.3s, transform 0.3s;
  border-radius: 8px;
}

.sidebar ul li a:hover {
  background: #6a3093;
  transform: translateX(5px);
}

/* Main Content */
.content {
  flex: 1;
  padding: 30px;
  animation: fadeIn 0.5s ease;
  background: #f9f9f9;
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Assignment Page Styles */
.assignment-body {
  background: #f4f7fb;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

.assignment-container {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  animation: fadeIn 0.8s ease;
}

.assignment-container h2 {
  text-align: center;
  color: #2b5876;
  margin-bottom: 20px;
}

.assignment-container h3 {
  margin-top: 25px;
  color: #4e4376;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.assignment-container h4 {
  margin-top: 15px;
  color: #2b5876;
  font-style: italic;
}

.assignment-container p {
  margin: 10px 0;
}

.assignment-container ul {
  margin: 10px 0 20px 30px;
  list-style: disc;
}

.assignment-container li {
  margin-bottom: 6px;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Table Styling for Assignments */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.comparison-table th {
  background: #2b5876;
  color: #fff;
  padding: 12px;
  text-align: center;
}

.comparison-table td {
  border: 1px solid #ddd;
  padding: 10px;
  vertical-align: top;
}

.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.comparison-table tr:hover {
  background-color: #eef3fb;
  transition: background 0.3s ease;
}



/* Diagram image style */
.diagram {
  display: block;
  max-width: 100%;
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Tables (if not already styled) */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.comparison-table th {
  background: #2b5876;
  color: white;
  padding: 12px;
  text-align: center;
}
.comparison-table td {
  border: 1px solid #ddd;
  padding: 10px;
  vertical-align: top;
}
.comparison-table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.comparison-table tr:hover {
  background-color: #eef3fb;
  transition: background 0.3s ease;
}
