/*
Theme Name: Kramare Liviing
Text Domain: kl
*/

/* Toast Styles */
.toast {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  animation: slideIn 0.3s ease-out;
  font-family: "Inter", sans-serif;
}

.toast.success {
  background-color: #10b981;
  color: white;
}

.toast.error {
  background-color: #ef4444;
  color: white;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 0.875rem;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast.removing {
  animation: slideOut 0.3s ease-in forwards;
}

/* Custom checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
  accent-color: #15803d;
}

/* Loading state for button */
.button-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Content Wrapper Styles */
.content-wrapper h1 {
  font-family: "Roboto Slab", serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.content-wrapper h2 {
  font-family: "Roboto Slab", serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.content-wrapper h3 {
  font-family: "Roboto Slab", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.content-wrapper h4 {
  font-family: "Roboto Slab", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.25rem;
  margin-bottom: 0.625rem;
}

.content-wrapper h5 {
  font-family: "Roboto Slab", serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.content-wrapper h6 {
  font-family: "Roboto Slab", serif;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.content-wrapper p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

.content-wrapper a {
  color: #15803d;
  text-decoration: underline;
  transition: color 0.2s;
}

.content-wrapper a:hover {
  color: #16a34a;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-wrapper ul {
  list-style-type: disc;
}

.content-wrapper ol {
  list-style-type: decimal;
}

.content-wrapper li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.content-wrapper blockquote {
  border-left: 4px solid #15803d;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
}

.content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.content-wrapper figure {
  margin: 1.5rem 0;
}

.content-wrapper figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.content-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.content-wrapper table th,
.content-wrapper table td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.content-wrapper table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #111827;
}

.content-wrapper table tr:nth-child(even) {
  background-color: #f9fafb;
}

.content-wrapper code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  color: #dc2626;
}

.content-wrapper pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.content-wrapper pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.content-wrapper hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.content-wrapper strong {
  font-weight: 600;
  color: #111827;
}

.content-wrapper em {
  font-style: italic;
}

/* WordPress alignment classes */
.content-wrapper .alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.content-wrapper .alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-wrapper .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
