body {
    background-color: #2c3e50;
    font-family: 'Roboto', sans-serif;
    color: #1f2937; /* Dark, neutral gray text */
}
.page-container {
    background-color: #f0f2f5;
    margin: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 5px 0 #dcdfe3, 0 8px 15px rgba(0,0,0,0.08);
    padding-bottom: 1rem;
    /* Subtle dot texture */
    background-image: radial-gradient(#d8dbde 0.5px, transparent 0.5px);
    background-size: 5px 5px;
}
.title-container {
    padding-top: 0.5rem;
}
.title-container h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 0;
}
.title-container h2 {
    font-weight: 500;
    font-size: 1.8rem;
    color: #2c3e50; /* Medium gray */
}
/* Improved banner/title design */
.title-banner {
    background: transparent; /* Cleaner look */
    padding: 1.25rem 0.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    border-bottom: 1px solid #e5e7eb; /* Light gray border */
    margin-bottom: 0.5rem;
}
.sampa-highlight {
    color: #00796b; /* Energetic Teal */
}
.kanban-board {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    overflow-x: auto;
    min-height: 50vh; /* Ensure it has some height */
    justify-content: flex-start; /* Align to start for proper scrolling */
}

/* Center the board on large screens where scrolling is not needed */
@media (min-width: 1080px) {
    .kanban-board {
        justify-content: center;
    }
}
.kanban-board p {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    color: #95a5a6;
}
.kanban-column {
    flex: 1 1 320px;
    min-width: 320px;
    max-width: 500px; /* Prevent columns from being too wide */
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1); /* Subtle shadow */
    border: 1px solid transparent; /* Border color will be on specific columns */
}
.kanban-column-selecao { background-color: #fef3c7; border-color: #fcd34d; }
.kanban-column-gestao { background-color: #d1fae5; border-color: #6ee7b7; }
.kanban-column-planejamento { background-color: #e0e7ff; border-color: #a5b4fc; }
.kanban-column h2 {
    font-size: 1.35rem; /* visibly larger title */
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column; /* put icon above title */
    align-items: center;
    gap: 0.6rem; /* increased spacing between emoji and title */
    font-weight: 700;
    justify-content: center;
    text-align: center;
}
.kanban-column h2 span.icon {
    font-size: 2.2rem; /* much larger icon */
    line-height: 1;
    display: block;
    transform: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}
.kanban-column h2 span.col-title {
    font-size: 1.25rem;
    font-weight: 700;
}
.kanban-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 2px 0 0 #e5e7eb, 0 3px 5px rgba(0,0,0,0.07);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.kanban-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 0 0 #e5e7eb, 0 8px 20px rgba(0,0,0,0.12);
}
.kanban-card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kanban-card-header a {
    text-decoration: none;
}
.kanban-card-header a:hover strong {
    color: #14b8a6; /* Energetic Teal on hover */
}
.kanban-card-header strong {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.4rem;
    transition: color 0.2s ease-in-out;
}
.duration-badge {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}
.kanban-card-body {
    padding: 1rem;
    flex-grow: 1;
    font-size: 1.2rem;
}
.kanban-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
}
.kanban-card-footer span:first-child {
    font-size: 0.9rem;
}
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Status colors */
.status-concluída { background-color: #10b981; } /* Vibrant Green */
.status-em-andamento { background-color: #3b82f6; } /* Vibrant Blue */
.status-não-iniciada {
    background-color: #e5e7eb; /* Light gray background */
    color: #374151; /* Dark gray text for high contrast */
    border: 1px solid #d1d5db; /* Subtle border to define it */
}
.kanban-card-details {
    display: none; /* Initially hidden */
    grid-template-columns: 50% 50%;
    gap: 0.5rem 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}
.detail-item {
    display: contents; /* Allows the children to be direct grid items */
}
.detail-key {
    font-weight: 500;
    color: #374151;
    text-align: left;
}
.detail-value {
    color: #1f2937;
}
.expand-btn {
    cursor: pointer;
    text-align: center;
    padding: 0.25rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #6b7280;
}
.expand-btn:hover {
    background-color: #f3f4f6;
}
/* Footer */
.site-footer {
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}
.site-footer a.github-link {
    color: #1f2937;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.site-footer a.github-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Theme Switcher */
.title-banner {
    position: relative;
}

.theme-switcher-container {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.theme-toggle-btn {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 2rem;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn:hover {
    background-color: #e5e7eb;
}

.theme-toggle-btn svg {
    width: 22px;
    height: 22px;
    fill: #4b5563;
    transition: fill 0.2s ease;
}

/* Hide light icon by default */
.theme-toggle-btn #theme-toggle-light-icon {
    display: none;
}

/* --- Dark Theme Styles --- */
body.dark-theme {
    background-color: #2c3e50; /* Very dark cool gray */
    color: #f9fafb; /* Off-white text */
}

body.dark-theme .page-container {
    background-color: #111827;
    border: 1px solid #374151;
    box-shadow: 0 5px 0 #0b101a, 0 8px 15px rgba(0,0,0,0.2);
    /* Subtle dot texture for dark mode */
    background-image: radial-gradient(#29303b 0.5px, transparent 0.5px);
    background-size: 5px 5px;
}

body.dark-theme .title-container h2 {
    color: #f0f2f5; /* Lighter gray */
}

body.dark-theme .title-banner {
    background: transparent;
    border-bottom: 1px solid #374151; /* Dark gray border */
}

body.dark-theme .sampa-highlight {
    color: #2dd4bf; /* Brighter Teal for dark mode */
}

body.dark-theme .kanban-column-selecao { background-color: #423c1d; border-color: #b45309; }
body.dark-theme .kanban-column-gestao { background-color: #144238; border-color: #10b981; }
body.dark-theme .kanban-column-planejamento { background-color: #28325a; border-color: #6366f1; }

body.dark-theme .kanban-column h2 { color: #f9fafb; }
body.dark-theme .kanban-card { background-color: #1f2937; border: 1px solid #374151; box-shadow: 0 2px 0 0 #111827, 0 3px 5px rgba(0,0,0,0.2); }

body.dark-theme .kanban-card:hover {
    /* transform is inherited from light theme */
    box-shadow: 0 2px 0 0 #111827, 0 8px 20px rgba(0,0,0,0.3);
}

body.dark-theme .kanban-card-header { border-bottom: 1px solid #374151; background-color: #374151; }
body.dark-theme .kanban-card-header a:hover strong { color: #2dd4bf; }
body.dark-theme .kanban-card-header strong { color: #f9fafb; }
body.dark-theme .duration-badge { background-color: #526179; color: #d1d5db; }
body.dark-theme .kanban-card-body { color: #d1d5db; }
body.dark-theme .kanban-card-footer { border-top: 1px solid #374151; color: #9ca3af; }
body.dark-theme .status-não-iniciada {
    background-color: #9ca3af; /* High-contrast light gray background */
    color: #111827; /* High-contrast dark text */
    border: none; /* Reset border from light mode */
}
body.dark-theme .kanban-card-details { background-color: #1f2937; border-top: 1px solid #374151; }
body.dark-theme .detail-key { color: #9ca3af; }
body.dark-theme .detail-value { color: #f9fafb; }
body.dark-theme .expand-btn { background-color: #374151; border-top: 1px solid #4b5563; color: #9ca3af; }
body.dark-theme .expand-btn:hover { background-color: #4b5563; }
body.dark-theme .site-footer { color: #9ca3af; border-top: 1px solid #374151; }
body.dark-theme .site-footer a.github-link { color: #f9fafb; }
body.dark-theme .site-footer a.github-link svg { fill: #f9fafb; }

/* Dark theme switcher button styles */
body.dark-theme .theme-toggle-btn {
    background-color: #374151;
    border-color: #4b5563;
}

body.dark-theme .theme-toggle-btn:hover {
    background-color: #4b5563;
}

body.dark-theme .theme-toggle-btn svg {
    fill: #d1d5db;
}

/* Show/hide icons in dark mode */
body.dark-theme .theme-toggle-btn #theme-toggle-dark-icon {
    display: none;
}

body.dark-theme .theme-toggle-btn #theme-toggle-light-icon {
    display: block;
}


/* Styles from 404.html */
.page-404-container {
  margin: 10px auto;
  max-width: 600px;
  text-align: center;
}
.page-404-container h1 {
  margin: 30px 0;
  font-size: 4em;
  line-height: 1;
  letter-spacing: -1px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-container {
        margin: 0.5rem;
    }

    .title-container h1 {
        font-size: 2.2rem;
    }

    .title-container h2 {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .kanban-board {
        padding: 0.75rem;
        gap: 0.75rem;
        scroll-snap-type: x mandatory;
    }

    .kanban-column {
        min-width: 100%;
        scroll-snap-align: center;
    }

    .kanban-card-header strong {
        font-size: 1.15rem;
    }

    .kanban-card-body {
        font-size: 1rem;
    }

    .theme-switcher-container {
        top: 0.75rem;
        right: 0.75rem;
    }

    .detail-item {
        font-size: 0.8rem
    }
}
