/* Recent URLs styles - integrated with main app layout */
.recent-urls-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  flex: 1;
}

.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.recent-urls-container {
  display: none; /* Not used anymore, using app-wrapper instead */
}

.recent-urls-header {
  display: none; /* Not used anymore */
}

.back-button {
  display: none; /* Using chat-header back button instead */
}

.recent-urls-title {
  display: none; /* Using chat-header-name instead */
}

.recent-urls-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.url-card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border-subtle);
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}

.url-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.url-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.url-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.url-icon > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}

.url-content {
  flex: 1;
  min-width: 0;
}

.url-domain {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  word-break: break-word;
}

.url-full {
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 0.4rem;
}

.url-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.url-time-icon {
  font-size: 0.9rem;
}

.url-external {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
  border: none;
  padding: 5px;
}

.url-external:hover {
  background: var(--accent);
  color: white;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1rem;
}

/* Mobile responsive */
@media (max-width: 700px) {
  .url-card {
    padding: 0.875rem;
  }

  .url-domain {
    font-size: 0.85rem;
  }
  
  .url-full {
    font-size: 0.7rem;
  }
}

