.login-button {
    display: inline-block;
    padding: 2px 10px;
    margin-left: auto; /* Push the button to the right */
    margin-right: 10px;
    background-color: hsl(315, 80%, 42%); /* Use a solid, high-contrast color */
    color: #fff; /* Ensure text is white */
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    font-size: 0.9em;
    vertical-align: middle;
}

.login-button:hover {
    background-color: #003c8f; /* Darker shade for hover */
    text-decoration: none;
}

.git-code-button {
    display: inline-block;
    background: #30363d;
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    margin-left: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.git-code-button:hover {
    background: #444d56;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-decoration: none;
}

.git-code-button .material-icons {
    font-size: 1rem;
    vertical-align: middle;
    margin-right: 4px;
}

/* Styles for the new home page design */
:root {
  --bnk-dark-bg: #1e2127; /* Existing */
  --bnk-yellow: #ffd700; /* Existing */
  --bnk-text: rgba(255, 255, 255, 0.95); /* Existing */
  --bnk-accent: #9f70ff; /* Existing */
  --bnk-yellow-transparent: rgba(255, 215, 0, 0.2);
}

.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

.hero-section h1 {
  color: var(--bnk-yellow);
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero-section .subtitle {
  font-size: 1.4rem;
  color: var(--bnk-text);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-section .cta-button {
  display: inline-block;
  background: var(--bnk-accent);
  color: white !important;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-section .cta-button:hover {
  background: #8656e5;
  transform: translateY(-2px);
  text-decoration: none;
}

.quick-start-section {
  background: rgba(40, 44, 52, 0.5); /* Similar to info-section */
  border: 1px solid rgba(var(--md-code-fg-color--rgb), 0.12); /* Consistent border */
  border-radius: 8px; /* Rounded corners */
  padding: 2rem;
  margin: 2.5rem auto;
  max-width: 850px; /* Consistent max-width */
  text-align: left; /* Align text to the left */
}

.quick-start-section h2 {
  color: var(--bnk-yellow); /* Consistent heading color */
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.8rem; /* Consistent heading size */
  border-bottom: 2px solid var(--bnk-accent); /* Accent border */
  padding-bottom: 0.5rem;
}

.quick-start-section p {
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--bnk-text); /* Consistent text color */
  margin-bottom: 1rem;
}

.quick-start-section .code-container {
  background: rgba(0, 0, 0, 0.6); /* Darker background for code */
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  font-family: 'Fira Code', monospace; /* Monospace font for code */
  color: #e0e0e0; /* Light text color for code */
  border: 1px solid rgba(var(--md-code-fg-color--rgb), 0.1);
}

.quick-start-section .code-container pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  background: transparent !important; /* Ensure pre background is transparent */
  padding: 0; /* Remove padding from pre if container handles it */
}

.quick-start-section .code-container code {
  font-family: 'Fira Code', monospace; /* Ensure code tag also uses monospace */
  color: #e0e0e0; /* Consistent code text color */
  background: transparent !important; /* Ensure code background is transparent */
  font-size: 0.95rem; /* Slightly smaller font for code block */
}

.quick-start-section .quick-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7); /* Subtler text color for the note */
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.quick-start-section .button {
  display: inline-block;
  background: var(--bnk-accent);
  color: white !important;
  padding: 0.7rem 1.4rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.quick-start-section .button:hover {
  background: #8656e5;
  text-decoration: none;
}

.info-section {
  background: rgba(40, 44, 52, 0.5);
  border: 1px solid rgba(var(--md-code-fg-color--rgb), 0.12);
  border-radius: 8px;
  padding: 2rem;
  margin: 2.5rem auto;
  max-width: 850px;
}

.info-section h2 {
  color: var(--bnk-yellow);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--bnk-accent);
  padding-bottom: 0.5rem;
}

.info-section p, .info-section ul {
  line-height: 1.7;
  font-size: 1.05rem;
  color: var(--bnk-text); /* Or var(--md-default-fg-color) for theme consistency */
}

.info-section ul {
  padding-left: 20px;
}
.info-section ul li {
  margin-bottom: 0.5rem;
}

.info-section .code-block {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
  font-family: 'Fira Code', monospace; /* Or var(--md-code-font-family) */
  color: #e0e0e0; /* Or var(--md-code-fg-color) */
  border: 1px solid rgba(var(--md-code-fg-color--rgb), 0.1);
}
.info-section .code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.apps-grid-container {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.apps-grid-container h2 {
  color: var(--bnk-yellow);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.app-card {
  background: var(--md-typeset-table-color); 
  border: 1px solid rgba(var(--md-code-fg-color--rgb), 0.12);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15), 0 0 15px var(--bnk-yellow-transparent);
}

.app-card h3 {
  color: var(--bnk-yellow);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
}
.app-card h3 .material-icons {
  margin-right: 0.75rem;
  color: var(--bnk-accent);
}

.app-card p {
  font-size: 1rem;
  color: var(--md-default-fg-color);
  flex-grow: 1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.app-card .button {
  display: inline-block;
  background: var(--bnk-accent);
  color: white !important;
  padding: 0.7rem 1.4rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.app-card .button:hover {
  background: #8656e5;
  text-decoration: none;
}

/* GitHub Widget Styles */
.github-widget {
  margin: 1.5rem 0;
  display: block;
}

.github-widget-container {
  border: 1px solid rgba(var(--md-primary-fg-color--rgb), 0.15);
  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(135deg, var(--md-code-bg-color) 0%, rgba(var(--md-primary-fg-color--rgb), 0.03) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.github-widget-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  border-radius: 12px 12px 0 0;
}

.github-widget-container:hover {
  border-color: var(--md-accent-fg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.github-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.github-widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.github-icon {
  color: var(--md-default-fg-color--light);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.github-widget .repo-link {
  color: var(--md-accent-fg-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
  word-break: break-word;
}

.github-widget .repo-link:hover {
  color: var(--md-primary-fg-color);
  text-decoration: none;
}

.github-widget-stats {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--md-default-fg-color);
  font-size: 13px;
  font-weight: 600;
  background: rgba(var(--md-primary-fg-color--rgb), 0.08);
  padding: 4px 8px;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.stat-item:hover {
  background: rgba(var(--md-accent-fg-color--rgb), 0.15);
  transform: scale(1.05);
}

.stat-item svg {
  color: var(--md-accent-fg-color);
  width: 14px;
  height: 14px;
}

.github-widget-description {
  color: var(--md-default-fg-color--light);
  margin-bottom: 16px;
  line-height: 1.5;
  font-size: 14px;
  font-style: italic;
  padding: 12px;
  background: rgba(var(--md-default-fg-color--rgb), 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--md-accent-fg-color);
}

.github-widget-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
  color: var(--md-default-fg-color--lighter);
  border-top: 1px solid rgba(var(--md-default-fg-color--rgb), 0.1);
  padding-top: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.language-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.last-update,
.license-info {
  color: var(--md-default-fg-color--lighter);
}

/* Loading State */
.github-widget-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: var(--md-default-fg-color--light);
  justify-content: center;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--md-default-fg-color--lightest);
  border-top: 2px solid var(--md-accent-fg-color);
  border-radius: 50%;
  animation: github-widget-spin 1s linear infinite;
}

@keyframes github-widget-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.github-widget-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  color: var(--md-typeset-color);
  text-align: center;
  background: var(--md-code-bg-color);
  border: 1px solid #f85149;
  border-radius: 6px;
}

.github-widget-error svg {
  color: #f85149;
}

.github-widget-error small {
  color: var(--md-default-fg-color--lighter);
  font-size: 11px;
}

/* Dark mode specific adjustments */
[data-md-color-scheme="slate"] .github-widget-container {
  background: var(--md-code-bg-color);
  border-color: #30363d;
}

[data-md-color-scheme="slate"] .github-widget-container:hover {
  border-color: var(--md-accent-fg-color);
}

/* Multiple widgets in a row */
.github-widgets-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.github-widgets-row .github-widget {
  margin: 0;
}

/* Compact widget variant */
.github-widget.compact .github-widget-container {
  padding: 12px;
}

.github-widget.compact .github-widget-header {
  margin-bottom: 8px;
}

.github-widget.compact .github-widget-description {
  display: none;
}

.github-widget.compact .github-widget-footer {
  margin-top: 8px;
  padding-top: 8px;
}

/* GitHub Widget Responsive - placed after existing mobile styles */
@media (max-width: 768px) {
  .github-widget-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .github-widget-stats {
    gap: 12px;
  }
  
  .github-widget-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Gitea Widget Styles */
.gitea-widget {
  margin: 1.5rem 0;
  display: block;
}

.gitea-widget-container {
  border: 1px solid rgba(var(--md-primary-fg-color--rgb), 0.15);
  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(135deg, var(--md-code-bg-color) 0%, rgba(var(--md-primary-fg-color--rgb), 0.03) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.gitea-widget-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #609926, #89c442);
  border-radius: 12px 12px 0 0;
}

.gitea-widget-container:hover {
  border-color: #89c442;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gitea-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.gitea-widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.gitea-icon {
  color: #89c442;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.gitea-widget .repo-link {
  color: #89c442;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
  word-break: break-word;
}

.gitea-widget .repo-link:hover {
  color: #609926;
  text-decoration: none;
}

.gitea-widget-stats {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.gitea-widget .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--md-default-fg-color);
  font-size: 13px;
  font-weight: 600;
  background: rgba(137, 196, 66, 0.1);
  padding: 4px 8px;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.gitea-widget .stat-item:hover {
  background: rgba(137, 196, 66, 0.2);
  transform: scale(1.05);
}

.gitea-widget .stat-item svg {
  color: #89c442;
  width: 14px;
  height: 14px;
}

.gitea-widget-description {
  color: var(--md-default-fg-color--light);
  margin-bottom: 16px;
  line-height: 1.5;
  font-size: 14px;
  font-style: italic;
  padding: 12px;
  background: rgba(var(--md-default-fg-color--rgb), 0.03);
  border-radius: 8px;
  border-left: 3px solid #89c442;
}

.gitea-widget-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
  color: var(--md-default-fg-color--lighter);
  border-top: 1px solid rgba(var(--md-default-fg-color--rgb), 0.1);
  padding-top: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.gitea-widget .language-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gitea-widget .language-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.gitea-widget .last-update,
.gitea-widget .license-info {
  color: var(--md-default-fg-color--lighter);
}

/* Gitea Loading State */
.gitea-widget-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  color: var(--md-default-fg-color--light);
  justify-content: center;
}

.gitea-widget-loading .loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--md-default-fg-color--lightest);
  border-top: 2px solid #89c442;
  border-radius: 50%;
  animation: gitea-widget-spin 1s linear infinite;
}

@keyframes gitea-widget-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Gitea Error State */
.gitea-widget-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  color: var(--md-typeset-color);
  text-align: center;
  background: var(--md-code-bg-color);
  border: 1px solid #f85149;
  border-radius: 6px;
}

.gitea-widget-error svg {
  color: #f85149;
}

.gitea-widget-error small {
  color: var(--md-default-fg-color--lighter);
  font-size: 11px;
}

/* Dark mode specific adjustments for Gitea */
[data-md-color-scheme="slate"] .gitea-widget-container {
  background: var(--md-code-bg-color);
  border-color: #30363d;
}

[data-md-color-scheme="slate"] .gitea-widget-container:hover {
  border-color: #89c442;
}

/* Multiple Gitea widgets in a row */
.gitea-widgets-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.gitea-widgets-row .gitea-widget {
  margin: 0;
}

/* Compact Gitea widget variant */
.gitea-widget.compact .gitea-widget-container {
  padding: 12px;
}

.gitea-widget.compact .gitea-widget-header {
  margin-bottom: 8px;
}

.gitea-widget.compact .gitea-widget-description {
  display: none;
}

.gitea-widget.compact .gitea-widget-footer {
  margin-top: 8px;
  padding-top: 8px;
}

/* Gitea Widget Responsive */
@media (max-width: 768px) {
  .gitea-widget-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .gitea-widget-stats {
    gap: 12px;
  }
  
  .gitea-widget-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
