@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400');
/* Force the logo image to be no more than 250px wide */
header img {
  max-width: 180px;
  width: 100%;
}

/* Make site layout full width with appropriate margins */
body > header, body > main, body > footer {
  max-width: 100% !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75em;
  padding-right: 0.75em;
  box-sizing: border-box;
}

/* Override classless.css width constraint */
:root {
  --width: 100%;
}

html[data-theme='light'] {
  --width: 100%;
}

html[data-theme='dark'] {
  --width: 100%;
}

/* Responsive padding for smaller screens */
@media (max-width: 768px) {
  body > header, body > main, body > footer {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

@media (max-width: 480px) {
  body > header, body > main, body > footer {
    padding-left: 0.25em;
    padding-right: 0.25em;
  }
}

/* Light and dark mode themes for Classless.css */
html[data-theme='dark'] {
	/* foreground   | background color */
	--cfg:   #cecbc4; --cbg:    #252220;
	--cdark: #999;    --clight: #333;
	--cmed:  #566;
	--clink: #1ad;
	--cemph: #0b9;    --cemphbg: #0b91;
}

@media (prefers-color-scheme: dark) {
	html[data-theme='dark'] {
		/* foreground   | background color */
		--cfg:   #cecbc4; --cbg:    #252220;
		--cdark: #999;    --clight: #333;
		--cmed:  #566;
		--clink: #1ad;
		--cemph: #0b9;    --cemphbg: #0b91;
	}	
}

/* Remove default table cell font-size from classless.css */
td, th {
  font-size: inherit;
}

/* Loading spinner for HTMX lazy loading */
.availability-loading {
    text-align: center;
    padding: 2em;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--clight);
    border-top-color: var(--cmed);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Create Dashboard button - darker in dark mode */
html[data-theme='dark'] .create-dashboard-btn {
    background-color: #1680aa !important; /* Darker blue in dark mode */
}

/* Donate Now button - darker in dark mode */
html[data-theme='dark'] .donate-now-btn {
    background-color: #018847 !important; /* Darker green in dark mode */
}

/* Footer styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Remove ornament from main section */
main::after {
    content: none !important;
}

/* Also remove from any section that might have it */
section::after {
    content: none !important;
}

/* Remove the CSS variable itself */
:root {
    --ornament: '' !important;
}

/* Dark mode styling for checkboxes */
html[data-theme='dark'] .cell-checkbox {
    background-color: #3a3735;
    border-color: #555;
}

html[data-theme='dark'] .cell-checkbox:checked {
    accent-color: #1680aa;
}

