@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');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body, html {
    background-color: #f9f9f9;
    color: #202020;
}

a {
    text-decoration: none;
    color: #202020;
}

button {
    background-color: #000;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: .3s ease all;
    color: #fff;
    font-size: 16px;
}

button:hover {
    opacity: .8;
}

input {
    border: 1px solid #000;
    border-radius: 8px;
    padding: 12px;
    background: none;
}

input:focus {
    outline: none;
}

input::placeholder {
    color: #000;
}

body {
  background: #fff;
  color: #202020;
}

/* Header navigation styles */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  background-color: #E6E6E6;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-title {
  font-size: 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  margin: 0;
  color: #202020;
}

.welcome-text {
  font-size: 16px;
  color: #666;
  font-weight: 400;
}

.logout-btn {
  background-color: rgba(0, 158, 255, 1);;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.logout-btn:hover {
  background-color: #d70015;
}

.main-container {
  display: flex;
  gap: 24px;
  margin: 0 auto;
  padding: 30px;
}

/* Sidebar styles */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-nav {
  background: #FBFBFB;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 18px;
  font-family: 'Montserrat' sans-serif;
  font-weight: 400;
}

.sidebar-link {
  padding: 12px 16px;
  text-decoration: none;
  color: #666;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background: #f5f5f5;
  color: #202020;
}

.sidebar-link.active {
  background: rgba(0, 158, 255, 1);;
  color: #fff;
}

.tariff-title {
  font-family: 'Montserrat' sans-serif;
  font-size: 18px;
  color: #000;
  font-weight: 500;
}

.tariff-card {
  background: #FBFBFB;
  color: #000;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tariff-status {
  font-size: 24px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: rgba(0, 158, 255, 1);
  margin-bottom: 8px;
}

.tariff-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #000;
  font-weight: 500;
}

.courses-wrapper {
  flex: 1;
  padding: 0;
}

.courses-wrapper h1 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: left;
}

/* Subscription page specific styles */
.subscription-cards {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.subscription-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
}

.subscription-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.subscription-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.info-item {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: grey;
}

.subscription-undertext {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: grey;
  text-align: center;
}

.info-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: #202020;
}

.subscription-title {
  color: rgba(0, 158, 255, 1);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.subscription-subtitle {
  color: grey;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.unsubscribe-btn {
  width: 100%;
  padding: 12px 24px;
  background: rgba(0, 158, 255, 1);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Push the button to the bottom of the card so all buttons line up */
  margin-top: auto;
}

.unsubscribe-btn.placeholder {
  visibility: hidden;
  pointer-events: none;
}

.unsubscribe-btn:hover:not(:disabled) {
  background: #333;
}

.unsubscribe-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .subscription-cards {
    flex-direction: column;
  }
  .subscription-card {
    width: 100%;
  }
  .subscription-title {
    font-size: 20px;
  }
  .subscription-subtitle,
  .info-item,
  .subscription-undertext {
    font-size: 14px;
  }
  .subscription-card {
    padding: 20px;
  }
  
  .subscription-description {
    font-size: 14px;
  }

  .courses-wrapper h1 {
    text-align: center;
  }

  .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) {
  .nav {
    padding: 12px 16px;
  }
  .main-container {
    padding: 16px;
  }
  .courses-wrapper h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .subscription-card {
    padding: 24px;
    gap: 10px;
  }
  .unsubscribe-btn {
    min-height: 44px;
    font-size: 13px;
  }
  .sidebar-nav {
    font-size: 14px;
    padding: 12px;
  }
  .tariff-card { display:none; }
}