/* Dashboard Styles */
.dashboard {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  flex-grow: 1;
  width: 100%;
  padding: 20px;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text-primary);
}

.account-info {
  background-color: var(--bg-dark);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--accent);
}

.account-info h2 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.account-info .info-row {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
}

.account-info .info-label {
  font-weight: bold;
  width: 120px;
  color: var(--text-secondary);
}

.guest-notice {
  background-color: var(--bg-dark);
  border-left: 5px solid var(--primary);
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-primary);
}

.guest-notice a {
  color: var(--primary);
}

.guest-notice strong {
  color: var(--text-primary);
}

.urls-container {
  background-color: var(--bg-dark);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.urls-table-container {
  overflow-x: auto;
  margin-top: 15px;
}

.urls-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text-primary);
}

.urls-table th {
  background-color: var(--accent);
  color: var(--text-primary);
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
}

.urls-table th:first-child {
  border-top-left-radius: var(--radius);
}

.urls-table th:last-child {
  border-top-right-radius: var(--radius);
}

.urls-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--accent);
  transition: background-color var(--transition);
  color: var(--text-primary);
}

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

.urls-table tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius);
}

.urls-table tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius);
}

.urls-table tr:hover td {
  background-color: rgba(187, 134, 252, 0.05);
}

.urls-table a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

.urls-table a:hover {
  text-decoration: underline;
  color: var(--primary-100);
}

.urls-table th,
.urls-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--accent);
}

.long-url-container {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hits-column {
  text-align: center;
  font-weight: 600;
}

.date-column {
  white-space: nowrap;
}

.url-count {
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--text-primary);
}

.empty-state {
  text-align: center;
  padding: 40px 0 20px;
  color: var(--text-primary);
}

.empty-state a {
  color: var(--primary);
}

.dashboard h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Hidden content toggle */
.hidden-content {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.hidden-content .content-mask {
  position: relative;
  display: inline-block;
}

.content-mask::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  border-radius: var(--radius);
}

.hidden-content.show .content-mask::before {
  display: none;
}

.hidden-content .visible-content {
  color: var(--text-primary);
  position: relative;
  visibility: hidden;
}

.hidden-content.show .visible-content {
  visibility: visible;
}

.hidden-content::after {
  content: "Click to reveal";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
}

.hidden-content.show::after {
  content: "";
}

.security-column {
  white-space: nowrap;
  text-align: center;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.security-badge svg {
  width: 12px;
  height: 12px;
}

.security-badge.secure {
  background-color: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}

.security-badge.standard {
  background-color: rgba(187, 134, 252, 0.1);
  color: var(--text-secondary);
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  flex-wrap: wrap;
  gap: 5px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background-color: var(--bg-dark);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background-color: var(--accent);
  color: var(--primary);
  text-decoration: none;
}

.pagination-link.current {
  background-color: var(--primary);
  color: var(--bg-dark);
  font-weight: 600;
  border-color: var(--primary);
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  color: var(--text-secondary);
}

.page-numbers {
  display: flex;
  gap: 5px;
}

.first,
.last,
.prev,
.next {
  font-weight: 500;
}

.page-info {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-left: 10px;
}

/* Make pagination responsive */
@media (max-width: 600px) {
  .pagination {
    flex-direction: column;
    gap: 10px;
  }

  .page-numbers {
    order: 1;
  }

  .first,
  .prev {
    order: 0;
  }

  .next,
  .last {
    order: 2;
  }
}