body {
  margin: 0;
  padding: 0;
  background: #f4f8fc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #232e3c;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: #101010;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 32px 24px 24px 24px;
}
.logo-icon {
  background: #fff;
  color: #0b59a4;
  font-weight: bold;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.logo-text span {
  display: block;
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.logo-text small {
  font-size: 0.85rem;
  color: #b7c2d0;
}
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  cursor: pointer;
  font-size: 1.08rem;
  border-left: 4px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.sidebar-nav li.active, .sidebar-nav li:hover {
  background: #00adef;
  border-left: 4px solid #fff;
  color: #232e3c;
}
.sidebar-nav .icon {
  font-size: 1.2em;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f4f8fc;
}
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px 10px 40px;
  background: #0b59a4;
  color: #fff;
}
.main-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
}
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 2px 8px;
  margin: 0 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.search-bar input {
  border: none;
  outline: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 1rem;
  width: 180px;
}
.search-bar button {
  background: none;
  border: none;
  color: #0b59a4;
  font-size: 1.1em;
  cursor: pointer;
  padding: 0 8px;
}
.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-pic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}
.profile-name {
  font-weight: 500;
  font-size: 1rem;
}
.credits {
  font-size: 0.95rem;
  color: #c7e3ff;
}

.dashboard-content {
  display: flex;
  gap: 32px;
  padding: 36px 40px;
  flex: 1;
  background: transparent;
}

.page-card {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 24px;
  margin: 16px auto;
  flex: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.left-panel {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.right-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
}
.tutorial-card, .subscription-card, .projects-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5eaf2;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 24px 28px;
  margin-bottom: 0;
}
.tutorial-card h3, .projects-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.video-placeholder {
  margin-top: 12px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #e0e7ef;
  position: relative;
  padding-top: 56.25%; /* 16:9 ratio */
}
.video-placeholder iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.subscription-card {
  margin-top: 14px;
}
.subscription-card h4 {
  margin: 0 0 10px 0;
  font-size: 1.08rem;
  font-weight: 600;
}
.plan-info {
  margin-bottom: 18px;
}
.plan-detail {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 0.98em;
}
.plan-actions {
  display: flex;
  gap: 12px;
}
.plan-actions button {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  border: none;
  background: #0074d9;
  color: #fff;
  font-weight: 500;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 10px;
}
.plan-actions button:last-child {
  margin-right: 0;
}
.plan-actions button:hover {
  background: #00c3ff;
  color: #232e3c;
}
.projects-card {
  min-width: 320px;
}
.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.projects-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.sort-by {
  font-size: 0.98em;
  color: #b7c2d0;
}
.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1em;
}
.projects-table th, .projects-table td {
  padding: 12px 10px;
  text-align: left;
}
.projects-table th {
  background: #0074d9;
  color: #fff;
  font-weight: 500;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.projects-table tbody tr {
  background: #fff;
  border-bottom: 1px solid #e5eaf2;
}
.projects-table tbody tr:last-child {
  border-bottom: none;
}
.open-btn {
  background: #0074d9;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 20px;
  font-size: 1em;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.open-btn:hover {
  background: #00c3ff;
  color: #232e3c;
}
@media (max-width: 1100px) {
  .dashboard-content {
    flex-direction: column;
    gap: 18px;
    padding: 24px 10px;
  }
  .left-panel, .right-panel {
    width: 100%;
    flex: unset;
  }
}
@media (max-width: 700px) {
  .dashboard-wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-direction: row;
    padding: 0;
    min-width: unset;
  }
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 10px 10px 10px;
  }
}

/* Keyword Research Page Styles */
.keyword-research-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  height: 100%;
}

.kr-headline {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 28px;
  color: #232323;
}

.kr-form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.kr-form input,
.kr-form select {
  font-size: 1rem;
  padding: 10px 16px;
  border: 1px solid #e5eaf2;
  border-radius: 24px;
  background: #f8fafc;
  outline: none;
  min-width: 160px;
  transition: border 0.2s;
}

.kr-form input:focus,
.kr-form select:focus {
  border: 1.5px solid #0b59a4;
}

.save-project-btn {
  display: inline-block;
  background: #0b59a4;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s;
  width: 180px;
  margin-top: 16px;
  margin-bottom: 0;
  position: static;
}

.save-project-btn.full-width, .save-project-btn.save-project-btn-block {
  width: 100%;
  margin-top: 18px;
  padding: 14px 0;
  font-size: 1.15rem;
  border-radius: 12px;
}

.save-project-btn:hover {
  background: #008dc6;
}

.kr-search-btn {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0b59a4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.2s;
}
.kr-search-btn:hover {
  background: #f4f8fc;
}

.kr-results {
  margin-top: 16px;
  background: transparent;
  border-radius: 12px;
  padding: 0;
}

.kr-results-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.kr-results-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #232323;
}

.kr-sort-by {
  font-size: 0.98rem;
  color: #888;
}

.kr-sort-link {
  color: #0b59a4;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  margin-left: 3px;
}

.kr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.03);
  margin-top: 0;
}

.kr-table th {
  background: #232323;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 8px;
  text-align: left;
  border: none;
}

.kr-table td {
  background: #fff;
  color: #232323;
  font-size: 1rem;
  padding: 11px 8px;
  border-top: 1px solid #f0f0f0;
  border-bottom: none;
}

.kr-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 700px) {
  .kr-form {
    flex-direction: column;
    gap: 10px;
  }
  .keyword-research-card {
    padding: 18px 6px;
  }
  .kr-headline {
    font-size: 1.2rem;
  }
}
