:root {
    --accent: #006e53;
    --accent-hover: #02aa80;

    --neutral: #e0e0e0ff;
    --neutral-hover: #bdbbbb;
    --green:  #00640d;
    --green-hover:  #008011;
    --red:    #880101;
    --red-hover:    #aa0000;
    --orange: #975b00;
    --orange-hover: #bb7001;
    --blue:   #001f7c;
    --blue-hover:   #002bad;
    --purple: #76007a;
    --purple-hover: #9e00a3;
}

h1, h2, h3, h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

h4 {
    font-size: 1rem;
}

button, .button, a.button, input[type="submit"], input[type="reset"], input[type="button"] {
    background-color: var(--accent);
}

button:hover, .button:hover, a.button:hover, input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover {
    background-color: var(--accent-hover);
}

.card {
    background: var(--accent-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.subcard {
    background: var(--bg);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.08);
}

.activity {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.activity:hover {
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.activity.selected {
    border-color: var(--accent);
    background: var(--green) !important;
    padding: 1rem;
}

.group-title {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--neutral);
    color: var(--text-light);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.bg-accent {
    background: var(--accent) !important;
    color: var(--neutral);
}
.bg-accent.hover:hover {
    background: var(--accent-hover) !important;
}

.bd-accent {
    border: 2px solid transparent;
    border-color: var(--accent) !important;
}

.bg-green {
    background: var(--green) !important;
    color: var(--neutral);
}
.bg-green.hover:hover {
    background: var(--green-hover) !important;
}

.bd-green {
    border: 2px solid transparent;
    border-color: var(--green) !important;
}

.bg-red {
    background: var(--red) !important;
    color: var(--neutral);
}
.bg-red.hover:hover {
    background: var(--red-hover) !important;
}

.bd-red {
    border: 2px solid transparent;
    border-color: var(--red) !important;
}

.bg-orange {
    background: var(--orange) !important;
    color: var(--neutral);
}
.bg-orange.hover:hover {
    background: var(--orange-hover) !important;
}

.bd-orange {
    border: 2px solid transparent;
    border-color: var(--orange) !important;
}

.bg-blue {
    background: var(--blue) !important;
    color: var(--neutral);
}
.bg-blue.hover:hover {
    background: var(--blue-hover) !important;
}

.bd-blue {
    border: 2px solid transparent;
    border-color: var(--blue) !important;
}

.bg-purple {
    background: var(--pruple) !important;
    color: var(--neutral);
}
.bg-purple.hover:hover {
    background: var(--purple-hover) !important;
}

.bd-purple {
    border: 2px solid transparent;
    border-color: var(--purple) !important;
}

.bg-black {
    background: black !important;
    color: var(--neutral);
}

.bd-black {
    border: 2px solid transparent;
    border-color: black !important;
}

.bg-gray {
    background: darkgray !important;
}

.bd-gray {
    border: 2px solid transparent;
    border-color: darkgray !important;
}

.locked {
    color: var(--red);
    font-weight: 600;
}

.cursor {
    cursor: pointer;
}

.horizontal-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.horizontal-form .form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.horizontal-form label {
    font-weight: 600;
    white-space: nowrap;
}

.horizontal-form input,
.horizontal-form select,
.horizontal-form textarea {
    width: auto;
    min-width: 150px;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--neutral);
    border-radius: 4px;
}

.horizontal-form button {
    margin-top: 0;
    white-space: nowrap;
}

/* Modern typography improvements */
p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Compact spacing for activity cards */
.subcard h3 {
    margin-bottom: 0.5rem;
}

.subcard p {
    margin: 0.25rem 0;
}

/* Better badge spacing */
.stratt {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Compact button styling */
button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    margin: 0.25rem;
}

.button-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.button-row-right {
    margin-left: auto;
}

/* media layout: text left, image right, image height matches text column */
.subcard .media-row {
  display: flex;
  gap: 1rem;
  align-items: stretch; /* make children the same height */
}

.subcard .media-content {
  flex: 1 1 auto;
  min-width: 0; /* allow contents to shrink properly */
}

/* thumbnail becomes a fixed-width column that stretches to content height */
.subcard .thumbnail {
  float: none;
  display: block;
  height: 100%;
  width: auto;
  max-width: 22%;      /* adjust percent to control width */
  object-fit: cover;   /* preserve aspect, fill the height */
  border-radius: 6px;
}

/* mobile: stack, image full width and natural height */
@media (max-width: 768px) {
  .subcard .media-row {
    display: block;
  }
  .subcard .thumbnail {
    width: 100%;
    height: auto;
    margin-top: 0.75rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        padding: 0.75rem;
    }
    
    .subcard {
        padding: 0.75rem;
    }
    
    .group-title {
        font-size: 0.85rem;
    }
}

.hidden {
    display: none;
}