* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  height: 40px;
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.page-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #4a90e2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.login-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.login-btn:hover {
  background-color: #f8f9fa;
  border-color: #999;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 100px;
  display: none;
  z-index: 200;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 30px;
}

.card-row {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.card {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-simple {
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  color: #666;
  font-size: 20px;
  font-weight: 500;
  padding-left: 40px;
  padding-right: 40px;
}

.card-simple h3 {
  color: #000000d9;
}

.card-with-header {
  height: 500px;
}

.card-header {
  background-color: #e3f2fd;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.card-content {
  background-color: white;
  padding: 20px;
  height: calc(100% - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

.single-card {
  height: 500px;
  width: 100%;
}

/* Footer */
.footer {
  background-color: white;
  border-top: 1px solid #e0e0e0;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.footer-logos img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-text {
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* Content Grid Styles */
.content-grid-container {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-areas:
    "card1 card2 card3"
    "card4 card4 card5";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  padding: 15px;
}

.content-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
}

.content-card:hover {
  background-color: #e9ecef;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.content-card-1 {
  grid-area: card1;
}
.content-card-2 {
  grid-area: card2;
}
.content-card-3 {
  grid-area: card3;
}
.content-card-4 {
  grid-area: card4;
}
.content-card-5 {
  grid-area: card5;
}

.content-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.content-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.content-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.content-card-subtitle {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.content-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.content-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-card-features li {
  font-size: 12px;
  color: #555;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 20px;
}

.content-card-features li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #4a90e2;
  font-weight: bold;
}

.content-card-features li:last-child {
  border-bottom: none;
}

.content-card-metrics {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.metric-item {
  text-align: center;
  flex: 1;
}

.metric-value {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  display: block;
}

.metric-label {
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}

/* Carousel Styles */
.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.carousel-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-indicator.active {
  background-color: #4a90e2;
  transform: scale(1.2);
}

.carousel-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 15px;
  padding-bottom: 45px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.carousel-page.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-page.prev {
  transform: translateX(-100%);
}

.carousel-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.carousel-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #333;
  flex-shrink: 0;
  text-align: center;
}

.carousel-card-image-placeholder {
  flex: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
  min-height: 200px;
}

.carousel-card-image-placeholder img {
  max-height: 250px;
  width: auto;
  object-fit: contain;
}

/* Pie Chart Styles */
.card-content-split {
  display: flex;
  height: calc(100% - 60px);
  gap: 20px;
  padding: 20px;
}

.pie-chart-container {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-chart {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#5ba3e0 0deg 120deg, #66d4c1 120deg 240deg, #e68a8a 240deg 360deg);
  transition: transform 0.3s ease;
}

.pie-chart:hover {
  transform: scale(1.05);
}

.pie-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-segment:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.pie-segment-1 {
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 86.6% 50%);
  z-index: 3;
}

.pie-segment-2 {
  clip-path: polygon(50% 50%, 86.6% 50%, 86.6% 100%, 13.4% 100%);
  z-index: 2;
}

.pie-segment-3 {
  clip-path: polygon(50% 50%, 13.4% 100%, 0% 0%, 50% 0%);
  z-index: 1;
}

.pie-segment-text {
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  line-height: 1.2;
  padding: 5px;
  white-space: nowrap;
}

.pie-segment-1 .pie-segment-text {
  transform: translate(50px, -50px) rotate(0deg);
}

.pie-segment-2 .pie-segment-text {
  transform: translate(10px, 60px) rotate(0deg);
}

.pie-segment-3 .pie-segment-text {
  transform: translate(-50px, -20px) rotate(0deg);
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #666;
  font-size: 14px;
  text-align: left;
  padding: 20px;
  padding-left: 20px;
}

.static-content-area {
  flex: 2;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.static-content-header {
  background-color: white;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
}

.static-content-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.static-content-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  color: #6c757d;
  font-size: 14px;
  min-height: 300px;
}

.static-content-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.content-details {
  margin-bottom: 20px;
}

.clickable-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-direction: column;
  gap: 15px;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.clickable-image-placeholder:hover {
  background-color: #e9ecef;
  border-color: #4a90e2;
  color: #4a90e2;
  transform: scale(1.02);
}

.placeholder-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.placeholder-text {
  font-weight: 500;
  margin-bottom: 5px;
}

.placeholder-subtitle {
  font-size: 12px;
  color: #868e96;
}

/* Topic 4 specific styles */
.image-placeholder {
  width: 100%;
  height: 200px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.five-column-layout {
  align-items: stretch;
}

.five-column-layout .col,
.five-column-layout .col-auto {
  display: flex;
  flex-direction: column;
}

.column-1 {
  gap: 20px;
  max-width: 400px;
}

.column-2 {
  justify-content: space-around;
  align-items: center;
  flex: 0 0 250px;
}

.column-3 {
  gap: 20px;
  justify-content: space-evenly;
  flex: 0 0 350px;
}

.column-4 {
  justify-content: space-between;
  align-items: center;
  flex: 0 0 80px;
}

.column-5 {
  gap: 20px;
}

.arrow-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.arrow-container-1 {
  flex: 1;
}

.arrow-container-2 {
  flex: 1;
  gap: 180px;
}

.thick-arrow {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  font-family: Arial, sans-serif;
  letter-spacing: -0.1em;
}

.arrow-blue {
  color: #4a90e2;
}

.arrow-orange {
  color: #f39c12;
}

.arrow-green {
  color: #27ae60;
}

.group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.group-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding-bottom: 5px;
}

.dropdown,
.form-select {
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  color: #333;
}

.dropdown-styled {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.dropdown-styled:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
  background-color: #fff;
}

.dropdown-styled:hover {
  border-color: #4a90e2;
  background-color: #f8f9fa;
}

.large-button {
  width: 90%;
  height: 60px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.large-button:hover {
  background-color: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.big-rectangle-container-1 {
  flex: 1;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.big-rectangle-container-2 {
  flex: 1;
}

.chart-container {
  flex: 1;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-container.chart-1 {
  min-height: 500px;
}

.chart-container.chart-2 {
  min-height: 500px;
  padding: 10px;
  gap: 10px;
}

.chart-2-top,
.chart-2-bottom {
  background-color: white;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Topic 4 Bootstrap dropdown styling */
.btn-group .btn.dropdown-toggle {
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #4a90e2;
  border-color: #4a90e2;
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  min-width: 150px;
}

.btn-group .btn.dropdown-toggle:hover,
.btn-group .btn.dropdown-toggle:focus {
  background-color: #357abd;
  border-color: #357abd;
}

.btn-group .btn.dropdown-toggle::after {
  margin-left: auto;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  height: 100%;
  width: 100%;
}

.security-placeholder {
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  min-height: 120px;
  width: 100%;
  height: 100%;
}

.security-placeholder img {
  max-height: 100%;
  max-width: 100%;
  overflow: hidden;
  object-fit: contain;
  transform: scale(1.1);
}

.security-placeholder:hover {
  background-color: #e9ecef;
  border-color: #4a90e2;
  transform: scale(1.02);
  text-decoration: none;
}

.security-placeholder .placeholder-icon {
  font-size: 32px;
  margin-bottom: 5px;
}

.security-placeholder .placeholder-text {
  font-weight: 500;
  font-size: 12px;
  text-align: center;
}

/* Rectangle container and small images grid styles */
.rectangle-container {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  min-height: 300px;
}

.container-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.small-images-grid-4-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 4px;
  justify-content: center;
  align-content: center;
  height: 100%;
}

.small-images-grid-4-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  justify-content: center;
  align-content: center;
  height: 100%;
}

.small-image-placeholder {
  width: 120px;
  height: 120px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.small-image-placeholder:hover {
  background-color: #e9ecef;
  border-color: #4a90e2;
  transform: scale(1.05);
}

.small-image-placeholder.selected {
  background-color: #e3f2fd;
  border-color: #4a90e2;
  border-width: 2px;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.small-image-placeholder.selected:hover {
  transform: scale(1.05);
}

.basic-small-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.small-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.small-image:hover {
  border-color: #4a90e2;
  transform: scale(1.05);
}

.second-column-rectangle {
  background-color: #bbdefb;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  height: 315px;
  padding: 15px;
  width: 70%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.fourth-column-rectangle {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  height: 315px;
  display: flex;
  flex-direction: column;
}

.fourth-column-rectangle:nth-child(2) {
  margin-top: auto;
  margin-bottom: auto;
}

.rectangle-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 14px;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #bbdefb;
}

.circle-element {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f39c12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 20px auto 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  gap: 8px;
}

.circle-icon-placeholder {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.circle-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  color: #555;
}

.rectangle-text-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rectangle-text-content li {
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  padding-left: 20px;
  color: #444;
}

.rectangle-text-content li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #4a90e2;
  font-weight: bold;
}

.rectangle-text-content li:last-child {
  border-bottom: none;
}

.text-label-container {
  height: 315px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-label-container:nth-child(2) {
  height: 315px;
  margin-top: auto;
  margin-bottom: auto;
}

.text-label-container:last-child {
  margin-bottom: 0;
}

.text-label {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 140px;
}

.basic-text-label {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.column-3 > .big-rectangle-container-2 {
  max-height: 175px;
  max-width: 200px;
}

.big-rectangle-container-2.container-2 {
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding: 10px;
}

.stacked-image {
  width: 100%;
  object-fit: cover;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.image-placeholder-small {
  width: 50px;
  height: 50px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  margin: 5px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

.fourth-column-rectangle .rectangle-content span {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.topic4-figure {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 85%;
}

.topic4-1 {
  background-image: url("images/topic4/achievement1/thumbnail.png");
}

.topic4-2 {
  background-image: url("images/topic4/achievement2/thumbnail.png");
}

.topic4-3 {
  background-image: url("images/topic4/achievement3/thumbnail.png");
}

.topic4-4 {
  background-image: url("images/topic4/achievement4/thumbnail.png");
}

.topic4-achivement-title {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 5px;
  color: black;
}
