@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


body {
  background: #fff;
  color: #202020;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Layout container (not defined globally for this page) */
.main-container {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
  width: 100%;
}

/* Course styles */
.course {
  transition: background 0.3s ease, color 0.3s ease;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 16px;
  flex-direction: row;
}

.course-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f5f5;
}

.course-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-type {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  font-weight: 500;
}

.course-title {
  font-size: 16px;
  font-weight: 600;
  color: #202020;
  margin: 0;
}

.course-description {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.course-button {
  background: rgba(0, 158, 255, 1);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

/* Courses grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.courses-wrapper {
  flex: 1;
  padding: 0;
}

.courses-wrapper h1 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: left;
}

/* Dialog/Modal styles */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  width: 90%;
  max-width: 800px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.pdf-header {
  padding: 16px;
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  position: relative;

  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 500;
}

.pdf-frame {
  width: 100%;
  height: 80vh;
  border: none;
  display: block;
}

.pdf-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  color: #000;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.pdf-container {
  max-height: 80vh;
  overflow-y: auto;
  padding: 0 16px;
}

.pdf-canvas {
  width: 100%;
  display: block;
}

.pdf-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f9f9f9;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    padding: 20px 16px 40px;
    gap: 24px;
  }
  .sidebar {
    order: 2;
    width: 100%;
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 14px 12px;
    gap: 6px;
  }
  .sidebar-link { white-space: nowrap; }
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }
  
  .course {
    padding: 14px 16px;
    gap: 14px;
  }
  
  .course-image {
    width: 60px;
    height: 60px;
  }

  .course-title { font-size: 15px; }
  .course-description { font-size: 13px; }

  .courses-wrapper h1 {
    text-align: center;
    font-size: 28px;
  }

  .nav {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .nav-left {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .nav-title {
    font-size: 28px;
  }

  .welcome-text {
    font-size: 14px;
  }

  .logout-btn {
    align-self: flex-end;
    margin-top: -30px;
  }
}

@media (max-width: 1024px) {
  .main-container {
    flex-direction: column;
    padding: 20px;
  }
  
  .sidebar {
    width: 100%;
    order: 2;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 15px;
  }
  
  .sidebar-link {
    white-space: nowrap;
    min-width: fit-content;
  }
  
  .courses-wrapper {
    order: 1;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .main-container { padding: 16px 14px 32px; }
  .courses-wrapper h1 { font-size: 24px; margin-bottom: 22px; }
  .course { flex-direction: column; align-items: flex-start; }
  .course-image { width: 100%; height: 160px; }
  .course-button { width: 100%; text-align: center; margin-top: 4px; }
  .tariff-card { display: none; }
  dialog { /* full-screen modal */
    width: 100%;
    max-width: none;
    height: 100vh;
    top: 0; left: 0; transform: none;
    border-radius: 0;
  }
  .pdf-container { max-height: calc(100vh - 150px); }
  .pdf-header { font-size: 22px; padding: 14px 16px; }
  .pdf-controls { position: sticky; bottom: 0; }
}
  