.yw-dashboard {
  max-width: 1300px;
  margin: auto;
  padding: 30px;
}

/* GRID LAYOUT */
.yw-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 25px;
}

/* PANEL */
.yw-keyword-panel,
.yw-traffic-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.yw-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.yw-panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* TABLE */
.yw-table {
  width: 100%;
  border-collapse: collapse;
}
.yw-table thead {
  background: #f8f9fb;
}
.yw-table thead th {
  padding: 12px 14px;
  font-size: 13px;
  text-align: left;
  color: #666;
  border-bottom: 1px solid #eee;
}
.yw-table tbody tr {
  transition: 0.2s;
}
.yw-table tbody tr:hover {
  background: #f5f7ff;
}
.yw-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
}

/* CENTER TEXT */
.text-center {
  text-align: center;
}

/* CLICKABLE VIEW */
.views {
  color: #2f6bff;
  font-weight: 600;
  cursor: pointer;
}

.views:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .yw-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
/* TOP MENU */
.yw-dashboard-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.yw-menu-links {
  display: flex;
  gap: 20px;
}

.yw-menu-links a {
  text-decoration: none;
  font-size: 14px;
  color: #555;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 4px;
  transition: 0.2s;
}

.yw-menu-links a:hover {
  background: #f2f4ff;
  color: #2f6bff;
}

.yw-menu-links a.active {
  color: #2f6bff;
  font-weight: 600;
}

.yw-user {
  font-size: 14px;
}

/* SEARCH PANEL */
.yw-search-panel {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.yw-search-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.yw-search-field {
  flex: 0 0 auto;
  width: 300px;
}

.yw-search-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.yw-search-field select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  height: 38px;
  line-height: 1.4;
}

.yw-search-field select:focus {
  outline: none;
  border-color: #2f6bff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.yw-btn-search {
  padding: 8px 24px;
  background: #2f6bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  height: 38px;
  line-height: 1; 
}

.yw-btn-search:hover {
  background: #1a5ce6;
}

.yw-btn-search:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* VIEW BUTTON */
.yw-btn-view {
  padding: 6px 12px;
  background: #2f6bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.yw-btn-view:hover {
  background: #1a5ce6;
}

.yw-btn-view.active {
  background: #22c55e;
}

/* LOADING */
.yw-loading {
  text-align: center;
  padding: 40px 20px;
}

.yw-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top-color: #2f6bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.yw-loading p {
  color: #666;
  font-size: 14px;
}

/* EMPTY STATE */
.yw-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.yw-empty p {
  font-size: 14px;
  margin: 0;
}

/* TARGET URL TRUNCATE */
.yw-table .yw-target-url {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  color: #666;
  font-size: 12px;
}

.yw-table .yw-target-url:hover {
  color: #2f6bff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .yw-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .yw-search-field {
    min-width: 100%;
  }

  .yw-btn-search {
    width: 100%;
  }

  .yw-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=user.css.map */

/* ================================
LOGIN
================================ */
.yw-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 20px;
}

.yw-login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

.yw-login-card h2 {
  text-align: center;
  margin: 0 0 30px;
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.yw-login-error {
  background: #fee2e2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid #dc2626;
}

.yw-field {
  margin-bottom: 15px;
}

.yw-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.yw-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
  box-sizing: border-box;
}

.yw-field input:focus {
  outline: none;
  border-color: #2f6bff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.1);
}

.yw-btn {
  width: 100%;
  padding: 10px;
  background: #2f6bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.yw-btn:hover {
  background: #1a5ce6;
}

/* ================================
STATS PANEL
================================ */
.yw-stats-panel {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.yw-stat-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.yw-stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fb;
  border-radius: 10px;
  flex: 1;
  min-width: 200px;
}

.yw-stat-icon {
  font-size: 32px;
}

.yw-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #2f6bff;
}

.yw-stat-label {
  font-size: 13px;
  color: #666;
}

.yw-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.yw-chart-box {
  background: #fafafa;
  border-radius: 8px;
  padding: 20px;
}

.yw-chart-box h4 {
  margin: 0 0 15px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.yw-chart-box canvas {
  max-height: 200px;
}

/* SEARCH + STATS ROW */
.yw-search-stats-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.yw-search-stats-row .yw-search-panel {
  flex: 1;
  margin-bottom: 0;
  min-width: 300px;
}

.yw-quick-stats {
  display: flex;
  gap: 15px;
  align-items: center;
}

.yw-quick-stat {
  background: #fff;
  border-radius: 10px;
  padding: 15px 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-width: 100px;
}

.yw-quick-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #2f6bff;
}

.yw-quick-stat-label {
  font-size: 12px;
  color: #666;
}
