/* text wraping for code & notebook output */
pre code {
    white-space: pre-wrap
}

/* override bootstrap theme for code blocks */
/* TODO: remove and actually edit theme */
pre.sourceCode {
    background-color: rgba(100,100,100,0.1) !important
}

/* notebook cell output */
.cell-output {
    background-color: rgba(100,100,100,0.2)
}

/* Drafts List Styles */
.drafts-list {
    margin: 2rem 0;
}

.drafts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.draft-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fafafa;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.draft-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.draft-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.draft-card h3 a {
    color: #007bff;
    text-decoration: none;
}

.draft-card h3 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.draft-card .description {
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.draft-card .date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.draft-card .path {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.draft-card .path code {
    background: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* Playbooks Grid Styles */
.playbooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.playbook-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fafafa;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.playbook-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.playbook-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.playbook-card h3 a {
    color: #007bff;
    text-decoration: none;
}

.playbook-card h3 a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.playbook-card .description {
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.playbook-card .date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.playbook-card .path {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 0;
}

.playbook-card .path code {
    background: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* Authentication Modal Styles */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.auth-modal {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.auth-modal h2 {
  margin-bottom: 1rem;
  color: #333;
}

.auth-modal input {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.auth-modal button {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}

.auth-modal button:hover {
  background: #0056b3;
}

.auth-error {
  color: #dc3545;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

/* Navbar Auth Button Styles */
.navbar-auth-button {
  margin-left: 0.5rem;
}

.navbar-auth-button button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.navbar-auth-button button:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-auth-button .bi {
  font-size: 1rem;
}
