/* Liberalerna Official Color Scheme */
:root {
  --liberalerna-black: #000000;
  --liberalerna-white: #ffffff;
  --liberalerna-dark-gray: #32373c;
  --liberalerna-cyan-blue: #0693e3;
  --liberalerna-purple: #9b51e0;
  --liberalerna-red: #cf2e2e;
  --liberalerna-gray: #abb8c3;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--liberalerna-cyan-blue);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Liberalerna Button Styling */
.btn-liberalerna {
  background-color: var(--liberalerna-dark-gray);
  border-color: var(--liberalerna-dark-gray);
  color: white;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-liberalerna:hover {
  background-color: var(--liberalerna-black);
  border-color: var(--liberalerna-black);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-liberalerna {
  border: 2px solid var(--liberalerna-dark-gray);
  color: var(--liberalerna-dark-gray);
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-outline-liberalerna:hover {
  background-color: var(--liberalerna-dark-gray);
  border-color: var(--liberalerna-dark-gray);
  color: white;
  transform: translateY(-2px);
}

/* Gradient backgrounds */
.gradient-cyan-purple {
  background: linear-gradient(135deg, var(--liberalerna-cyan-blue) 0%, var(--liberalerna-purple) 100%);
}

.gradient-midnight {
  background: linear-gradient(135deg, #000428 0%, #004e92 100%);
}

/* Card enhancements */
.card-liberalerna {
  border-left: 4px solid var(--liberalerna-dark-gray);
  transition: all 0.3s ease;
}

.card-liberalerna:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Hero section */
.hero-liberalerna {
  background: linear-gradient(135deg, var(--liberalerna-cyan-blue) 0%, var(--liberalerna-purple) 100%);
  color: white;
}

/* Navbar branding */
.navbar-brand-liberalerna {
  font-weight: 700;
  color: var(--liberalerna-dark-gray) !important;
  font-size: 1.25rem;
}

/* Image styling */
.img-feature {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.img-feature:hover {
  transform: scale(1.05);
}

/* Content Editor Styles */
.editable-section {
  position: relative;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.editable-section .edit-btn {
  position: absolute;
  top: 0.5rem;
  right: -3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.editable-section:hover .edit-btn {
  opacity: 0.8;
}

.editable-section .edit-btn:hover {
  opacity: 1;
}

.section-content.editing {
  outline: 2px dashed var(--liberalerna-cyan-blue);
  outline-offset: 4px;
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
}

.content-proposal {
  font-style: italic;
  font-size: 0.9em;
  color: #6c757d;
  background-color: #fff3cd;
  padding: 1rem;
  margin-top: 1rem;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-proposal .proposed-content {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background-color: white;
  border-radius: 4px;
  font-style: normal;
}

.content-proposal strong {
  color: var(--liberalerna-dark-gray);
}

.mark-complete-btn {
  margin-top: 0.5rem;
}