@import url(/assets/reset-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css);
@import url(/assets/grid-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css);
@import url(/assets/typography-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css);
@import url(/assets/widgets-3d3eafae53a21768d301dc0ff6fe0fb114484212265ed49a07ed8ecb2f910a17.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
    background: #fff;
}


.header {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 16px;
}

.header-content {
    max-width: 65em;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.0em;
    font-weight: bold;
    color: #0066cc;
}


.nav {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
}

.nav a {
    color: #333;
    font-weight: 500;
}

.nav a:hover {
    color: #0066cc;
}

.container {
    padding: 16px;
}

.container-content {
    max-width: 65em;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

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

.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.user-quick-actions a {
  font-size: 0.9em;
  text-decoration: none;
  font-weight: 500;
  border-radius: 3px;
  padding: 5px 10px;
  background-color: #f0f0f0;
}

.user-quick-actions a:hover {
  color: #eeeeee;
  background-color: #222222;
  text-decoration: none;
}

.pagination {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    align-items: center;
    font-size: 0.9rem;
}

.pagination a {
    padding: 4px 8px;
    border-radius: 3px;
    background: #f0f0f0;
    color: #0066cc;
}

input[type=text],
input[type=password],
textarea
{
  background: #f8f9fa;
  padding: 0.5em 0.7em;
  border: 1px #ddd solid;
}

input[type=submit]
{
  background: #ededed;
  padding: 0.5em 0.7em;
  font-weight: bold;
  color: #222;
}

.bookmark-actions {
  display: flex;
}

.bookmark-actions button[type=submit]
{
  background: #ededed;
  padding: 0.4em 0.6em;
  border-radius: 3px;
  border: 1px #888 solid;
  font-size: 0.7em;
}

.pagination a:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.pagination .current {
    padding: 4px 8px;
    background: #0066cc;
    color: white;
    border-radius: 3px;
}

.date-group {
    margin-bottom: 16px;
}

.date-header {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e5e5;
}

.bookmark {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bookmark:last-child {
    border-bottom: none;
}

.bookmark-title {
    font-size: 1.0rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.bookmark-title a {
  text-decoration: underline;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-section {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
}

.sidebar-title {
    font-size: 1.0rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.tag-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.tag-count {
    color: #666;
    font-size: 0.8rem;
}

.footer {
    background: #f8f9fa;
    padding: 12px 16px;
    margin-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    max-width: 65em;
    margin: 0 auto;
}

.footer-inner {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.footer a {
    color: #666;
}

.footer a:hover {
    color: #0066cc;
}

@media (max-width: 768px) {
    .container-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .nav {
        gap: 12px;
        font-size: 0.9rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

p {
  margin-bottom: 0.75em;
}

h1 {
  font-size: 1.75em;
  margin-bottom: 0.5em;
}

h2 {
  margin-bottom: 0.5em;
}

h3 {
  margin-bottom: 0.5em;
}

ul {
  margin-left: 3.0em;
  list-style-type: square;
  margin-bottom: 0.75em;
}

ol {
  margin-left: 3.0em;
  margin-bottom: 0.75em;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Extract to Widget */

.bookmark-card {
  display: flex;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}

.bookmark-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 0;
  min-width: 0;
}

.bookmark-card .card-content-core {
  margin-bottom: 0.3rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.5rem;
}

.card-title:hover {
  color: #2563eb;
  text-decoration: underline;
}

.card-description {
  color: #555;
  font-size: 0.90rem;
  margin-bottom: 6px;
  line-height: 1.5em;
}

.card-bottom {
  margin-top: auto;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem; /* Tighter gap before buttons */
}

.tag {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  border: 1px solid #e5e7eb;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tag:hover {
  background: #e0e0e0;
  text-decoration: none;
}

.card-actions {
  display: flex;
  flex-direction: row; /* Flow horizontally */
  gap: 0.4rem;
}

.btn {
  border: none;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem; /* Smaller font size */
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-edit {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.btn-edit:hover {
  background-color: #dbeafe;
}

.btn-delete {
  background-color: #fef2f2;
  color: #b91c1c;
}

.btn-delete:hover {
  background-color: #fee2e2;
}
