/* General Body & Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f8f9fa; /* Light grey background */
    color: #343a40;
}

:root {
    --surface: #fdfdff;
    --surface-alt: #f6f8fb;
    --border-subtle: #e4e8f1;
    --accent: #7c9bff;
    --accent-strong: #5c7cfa;
    --text-muted: #6b7280;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-lift: 0 10px 30px rgba(15, 23, 42, 0.06);
}

h1, h2 {
    color: #4a5568; /* Darker pastel grey */
}

a {
    color: #6c757d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Landing */
.landing-body {
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 60%, #e8ecf7 100%);
    min-height: 100vh;
}

.landing-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: transparent;
}

.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: #1f2937;
}

.brand-mark img {
    height: 36px;
    width: auto;
    display: block;
}

.landing-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.hero-copy h1 {
    margin: 0.4rem 0 1rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #1f2937;
}

.lead {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 640px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
}

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.btn-secondary {
    background: #f1f3f5;
    color: #1f2937;
    border: 1px solid #dfe3e8;
}

.btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #475569;
    font-weight: 600;
}

.hero-points span {
    background: #e8edf5;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.mock-screenshot {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, #ffffff, #f6f8fb);
    border: 1px solid #e3e8ef;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.07);
    padding: 1rem;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dfe3e8;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.mock-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 0.75rem;
    min-height: 140px;
}

.mock-card.wide {
    grid-column: span 2;
}

.mock-card .label {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.pill-green {
    background: #e6f6ec;
    color: #1d7a46;
}

.chart-bar {
    margin-top: 0.75rem;
    height: 16px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1d4ed8, #22c55e);
    width: 100%;
}

.chart-line {
    margin-top: 0.75rem;
    height: 120px;
    background: linear-gradient(180deg, #eef2ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    position: relative;
}

.chart-line::after {
    content: "";
    position: absolute;
    inset: 12px 18px;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    opacity: 0.6;
}

.summary {
    margin: 0.25rem 0 0;
    color: #111827;
    line-height: 1.5;
}

.landing-section {
    margin-top: 3rem;
}

.section-header {
    max-width: 720px;
}

.section-header h2 {
    margin: 0.35rem 0 0.25rem;
    color: #1f2937;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef2ff;
    display: grid;
    place-items: center;
    margin-bottom: 0.75rem;
    color: #1d4ed8;
}

.highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #0f172a, #111827 60%, #0b1324 100%);
    color: #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.highlight h2 {
    color: #f8fafc;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.stat-row strong {
    display: block;
    font-size: 1.6rem;
    color: #f8fafc;
}

.stat-row span {
    color: #cbd5e1;
}

.mock-screenshot.compact .mock-card {
    min-height: 0;
}

.agenda-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    color: #e5e7eb;
}

.agenda-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.agenda-list .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.dashboard-body {
    background: #f8fafc;
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.stat-card .label {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    font-size: 1.6rem;
    color: #1f2937;
}

.stat-card span {
    color: #6b7280;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.dashboard-shell {
    padding: 1.25rem;
    background: linear-gradient(145deg, #f8fbff, #f2f4ff);
}

.dashboard-hero {
    align-items: flex-start;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.mini-stat {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-lift);
}

.mini-bar {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #edf0f7;
    margin-top: 0.5rem;
}

.mini-bar--empty {
    background: #edf0f7;
}

.mini-bar__segment--red { background: #fca5a5; }
.mini-bar__segment--yellow { background: #fbbf24; }
.mini-bar__segment--green { background: #a7f3d0; }

.variance-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: #edf0f7;
    margin-top: 0.35rem;
    overflow: hidden;
}

.variance-bar__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: inherit;
}

.variance-bar__fill--positive {
    background: linear-gradient(90deg, #8be9c7, #4ade80);
}

.variance-bar__fill--negative {
    background: linear-gradient(90deg, #fda4af, #f43f5e);
}

.variance-bar--empty {
    background: #edf0f7;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #e7ebff;
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.85rem;
}

.chip-soft {
    background: #e0e7ff;
    color: #1e3a8a;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.link-inline {
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.link-inline:hover {
    text-decoration: underline;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    color: #1f2937;
}

.list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #273c75;
    font-weight: 600;
    font-size: 0.85rem;
}

.media-block {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.media-copy p {
    margin: 0 0 0.25rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green { background: #22c55e; }
.dot.blue { background: #3b82f6; }
.dot.amber { background: #f59e0b; }

.muted {
    color: #6b7280;
}

.small {
    font-size: 0.9rem;
}

/* Header / Navigation */
.navbar {
    background-color: #ffffff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a5568;
}

.nav-links a {
    margin-left: 1.5rem;
    font-weight: 500;
}

.sidebar-logout-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #4a5568;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.sidebar-logout-btn:hover {
    background: #f5f7fb;
    transform: translateY(-1px);
}

/* Main Content & Containers */
.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Forms & Inputs */
.form-container {
    max-width: 400px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    color: #343a40;
    -webkit-appearance: none; /* Remove default browser styling */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    cursor: pointer;
}

select:focus {
    border-color: #a3bffa;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(163, 191, 250, 0.25);
}

.card-header-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-header-with-controls h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.action-list-controls {
    display: flex;
    gap: 1.5rem;
}

.action-list-controls .form-group {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-list-controls .form-group label {
    min-width: 70px;
    white-space: nowrap;
}

.action-list-controls select#sort-by {
    min-width: 180px;
}

.action-list-controls select#filter-owner {
    min-width: 220px;
}

.action-list-controls select#filter-status {
    min-width: 180px;
}

.action-list-react .card {
    margin-top: 1rem;
}

.action-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.action-list__header h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.action-list__completed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.action-add-panel form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.action-add-panel .form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full-width {
    grid-column: 1 / -1;
}

.action-description-card {
    gap: 0.25rem;
}

.action-description-card__body {
    border: 1px solid #dbe1f1;
    border-radius: 16px;
    padding: 0.75rem;
    background: #fcfdff;
}

.action-description-card__body .rich-text-editor {
    border: none;
    border-radius: 12px;
    background: transparent;
    overflow: hidden;
}

.action-description-card__body .rich-text-editor .ql-toolbar {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 12px 12px 0 0;
    padding-bottom: 0.4rem;
    margin-bottom: 0.4rem;
}

.action-description-card__body .rich-text-editor .ql-container {
    border: none;
    border-radius: 0 0 12px 12px;
    min-height: 140px;
    box-sizing: border-box;
}

.action-add-panel textarea {
    resize: vertical;
}

.action-description-card__actions,
.action-add-panel .form-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}

.action-description-card__actions .btn,
.action-add-panel .form-actions .btn {
    white-space: nowrap;
}

.action-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.action-table {
    width: 100%;
    min-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) minmax(220px, 2fr) minmax(160px, 1fr) minmax(140px, 0.9fr) minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(150px, 1fr) 80px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
}

.action-row--header {
    background: #f7f9fc;
    border: 1px solid #dbe1f1;
    border-radius: 12px;
    box-shadow: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #6b7280;
}

.action-row--header .action-cell {
    display: flex;
    align-items: center;
}

.action-row--state {
    justify-content: center;
}

.action-row--state .action-cell {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 2rem 0;
    font-weight: 600;
    color: #6c757d;
}

.action-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.action-cell--description {
    align-items: flex-start;
}

.action-cell--status {
    align-self: stretch;
    align-items: center;
}

.actions-cell {
    justify-content: flex-end;
}

.action-row.action-item--complete {
    background-color: #f8fdf8;
    border-color: #c8f3da;
}

.action-cell--checklist {
    align-self: stretch;
    flex-direction: column;
    align-items: stretch;
}

.sub-actions-inline {
    margin-top: 0;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sub-actions-inline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sub-actions-inline__list li label {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #1f2937;
    align-items: center;
}

.sub-actions-inline__list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.sub-actions-inline__footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
}

.sub-actions-inline__footer .link-button {
    font-size: 0.8rem;
}

.sub-actions-inline__actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.action-subactions-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.action-subactions-modal .modal-close-btn {
    color: #6b7280;
}

.action-subactions-modal .modal-close-btn:hover {
    color: #111827;
}

.sub-actions-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-actions-modal__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid #edf2f7;
}

.sub-actions-modal__list li label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.sub-actions-modal__list li.is-complete span {
    text-decoration: line-through;
    color: #94a3b8;
}

.sub-actions-modal__form {
    display: flex;
    gap: 0.5rem;
}

.sub-actions-modal__form input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.sub-actions-modal__form .btn {
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1200px) {
    .action-table {
        min-width: 0;
    }

    .action-row,
    .action-row--header {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-row--header {
        display: none;
    }

    .action-row .action-cell {
        padding: 0.35rem 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .action-row .action-cell::before {
        content: attr(data-label);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #9ca3af;
        margin-bottom: 0.15rem;
    }

    .action-row .actions-cell {
        justify-content: flex-start;
    }

    .action-row .action-cell--title {
        grid-column: 1 / -1;
        font-weight: 600;
    }

    .action-row .action-cell--description {
        grid-column: 1 / -1;
    }
}

.inline-editor {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inline-editor__actions {
    display: flex;
    gap: 0.5rem;
}

.link-button {
    border: none;
    background: none;
    color: #2563eb;
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-align: left;
}

.link-button:hover {
    text-decoration: underline;
}

.admin-ai-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-app-shell {
    display: flex;
    gap: 1.5rem;
}

.admin-subnav {
    width: 180px;
}

.admin-subnav ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.admin-subnav li {
    margin-bottom: 0.5rem;
}

.admin-subnav li a {
    color: #475467;
    text-decoration: none;
    font-weight: 500;
}

.admin-subnav li.active a {
    color: #2563eb;
}

.admin-content {
    flex: 1;
}

.admin-ai-page .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.admin-ai-page .metric {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.admin-ai-page .metric-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-ai-page .metric-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.admin-ai-page .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-ai-page .data-table th,
.admin-ai-page .data-table td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.65rem;
    text-align: left;
}

.admin-ai-page .data-table th {
    background: #f8fafc;
    font-weight: 600;
}

.action-description-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.inline-editable {
    cursor: pointer;
    color: inherit;
    border-bottom: 1px dashed transparent;
}

.inline-editable:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.4);
    border-radius: 2px;
}

.inline-editable:hover {
    border-bottom-color: rgba(37, 99, 235, 0.6);
}

.rich-text-editor {
    border: 1px solid #dbe1f1;
    border-radius: 10px;
    background: #fff;
}

.rich-text-editor .ql-toolbar {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 10px 10px 0 0;
}

.rich-text-editor .ql-container {
    border: none;
    border-radius: 0 0 10px 10px;
    min-height: 140px;
}

.hidden {
    display: none !important;
}

/* Action List Specific Styles */
.action-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.action-status-select {
    appearance: none;
    border: 1px solid #dbe1f1;
    background-color: #f7f9ff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.35rem 2.25rem 0.35rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.3;
    color: #2f3640;
    min-width: 150px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2357648c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(16, 24, 40, 0.08);
}

.action-status-select:focus {
    outline: none;
    border-color: #7c8cff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.25);
}

.status-open {
    background-color: #eef2ff;
    border-color: #d8defc;
    color: #303a52;
}

.status-in_progress {
    background-color: #e5f0ff;
    border-color: #c2dafc;
    color: #0c3c78;
}

.status-on_hold {
    background-color: #fff8e5;
    border-color: #ffe6a8;
    color: #8c5a00;
}

.status-complete {
    background-color: #e5fbef;
    border-color: #c8f3da;
    color: #1d6b3b;
}

.action-title.editable {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 150ms ease-in-out;
}
.action-title.editable:hover {
    background-color: #f1f3f5;
}

.is-overdue {
    background-color: #f8d7da; /* Light red background for overdue rows */
}

.action-description-cell {
    max-height: 4.5em; /* Roughly 3 lines of text */
    overflow: hidden;
    position: relative;
    color: #6c757d;
}

.action-description-cell.editable {
    cursor: pointer;
}

.action-description-cell.editable:hover {
    background-color: #f8f9fa;
}

.inline-edit-input,
.inline-edit-select {
    font: inherit;
    width: 100%;
    min-height: 36px;
    border: 1px solid #dbe1f1;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    background-color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.inline-edit-input:focus,
.inline-edit-select:focus {
    outline: none;
    border-color: #7c8cff;
    box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.25);
}

.inline-edit-select {
    appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2357648c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.65rem;
}

.inline-date-input {
    font: inherit;
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe1f1;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    background-color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: border-color 150ms ease, box-shadow 150ms ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.inline-date-input:focus {
    outline: none;
    border-color: #7c8cff;
    box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.25);
}

.inline-date-input {
    position: relative;
    padding-right: 2.25rem;
}

.inline-date-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.inline-date-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2357648c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.95rem;
}

.action-due-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    background-color: #f7f9ff;
    font-weight: 600;
    color: #495057;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.action-due-date.editable {
    cursor: pointer;
}

.action-due-date.editable:hover {
    background-color: #eef2ff;
    border-color: #c7cffc;
}

.is-overdue .action-due-date {
    background-color: #fff5f5;
    border-color: #ffc9c9;
    color: #c92a2a;
}

.status-note {
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 0;
}

.status-note:last-child {
    border-bottom: none;
}

.note-text {
    margin: 0 0 0.25rem 0;
}

.note-meta {
    color: #6c757d;
}

.action-description-cell p {
    margin: 0; /* Remove default paragraph margin inside the cell */
}

/* Quill.js Editor Styles */
.quill-editor-container {
    height: 150px; /* Set a default height for the editor */
    background-color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, #9fb7ff, #7c9bff);
    color: #0f172a;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-lift);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(124, 155, 255, 0.35);
}

.btn-ghost {
    background: #fff;
    color: #0f172a;
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.btn-ghost:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-1px);
}

.btn-with-icon {
    gap: 0.5rem;
}

.btn-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Team Page Layout & Cards */
.team-container {
    max-width: 1100px;
    text-align: left;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.team-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.team-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.team-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin: 1.5rem 0 0.5rem 0;
    padding: 0 1rem;
}

.team-sidebar .nav-item a {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 4px;
}

.team-sidebar .nav-item a:hover {
    background-color: #f1f3f5;
    text-decoration: none;
}

.app-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-brand__logo {
    height: 40px;
    width: auto;
    display: block;
}

.app-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.card h2 {
    margin-top: 0;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Member List Styling */
.member-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-list-item {
    display: grid;
    grid-template-columns: 1fr auto auto; /* Name | Role | Actions */
    gap: 20px; /* Space between columns */
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.member-list-item:last-child {
    border-bottom: none;
}

.member-identity .name {
    font-weight: 600;
}
.member-identity .email {
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.avatar-settings {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid #e3e8ef;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #f5f7fb;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e0e7ff;
    color: #1e3a8a;
    font-weight: 700;
}

.avatar-preview--sm {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}

.avatar-preview--sm .avatar-fallback {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
}

.avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar-actions__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.avatar-presets {
    width: 100%;
}

.avatar-presets__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.avatar-preset {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.35rem;
    background: #fff;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: grid;
    place-items: center;
}

.avatar-preset img {
    width: 48px;
    height: 48px;
}

.avatar-preset:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    border-color: #d0d7eb;
}

.avatar-choices {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, auto);
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.35rem;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    background: #f9fbff;
}

.avatar-choice {
    all: unset;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
    position: relative;
}

.avatar-choice img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    display: block;
    background: #f3f6ff;
}

.avatar-choice__label {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 0.65rem;
    color: #4b5563;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 999px;
}

.avatar-choice__icon {
    font-size: 1.2rem;
    color: #6b7280;
}

.avatar-choice--upload {
    background: none;
    border: none;
}

.avatar-choice__fallback {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e0e7ff;
    display: grid;
    place-items: center;
    color: #273c75;
    font-weight: 700;
}

.avatar-choice:hover {
    transform: translateY(-1px);
}

.avatar-choice.is-selected {
    box-shadow: 0 0 0 2px rgba(124, 155, 255, 0.25);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.modal-close:hover {
    color: #333;
}

.action-notes-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.action-notes-modal .modal-close-btn {
    color: #6b7280;
    font-size: 1.35rem;
    line-height: 1;
}

.action-notes-modal .modal-close-btn:hover {
    color: #111827;
}

.action-notes-modal .notes-modal-list {
    max-height: 360px;
    overflow-y: auto;
}

.action-notes-modal .notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-notes-modal .notes-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.action-notes-modal .notes-list__content {
    overflow-wrap: anywhere;
    color: #1f2933;
}

.action-notes-modal .notes-list__meta {
    text-align: right;
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.action-notes-modal .notes-list__meta strong {
    color: #111827;
    font-weight: 600;
}

.action-notes-modal .notes-modal-form form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-notes-modal .modal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .action-notes-modal .notes-list__item {
        grid-template-columns: 1fr;
    }

    .action-notes-modal .notes-list__meta {
        text-align: left;
    }
}

/* Action Buttons Layout */
.member-actions {
    display: flex;
    gap: 10px; /* Creates a 10px space between buttons */
}

/* Table Styles for Member List */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    font-weight: 600;
    color: #4a5568;
    background-color: #f8f9fa;
}

.data-table .actions-cell {
    text-align: right;
}

.action-last-update {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.action-last-update .btn-icon {
    padding: 0.35rem;
}
.icon-svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    vertical-align: middle;
    margin-right: 8px;
    color: #4a5568; /* Match the icon color to the text color */
}

.form-group-full-width {
    grid-column: 1 / -1; /* Spans all columns in a grid */
}

/* Custom Icon Selector Styles */
.icon-selector {
    position: relative;
    width: 200px;
}

.icon-selector-selected {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    background-color: white;
}

.icon-selector-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none; /* Hidden by default */
}

.icon-selector-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
}

.icon-selector-option:hover {
    background-color: #f1f3f5;
}

.icon-selector-option.selected {
    background-color: #e9ecef;
}

/* Drag and Drop Handle */
.data-table-row.draggable {
    position: relative;
    padding-left: 30px; /* Make space for the handle */
}

.drag-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: #adb5bd;
}

.drag-handle:hover {
    color: #495057;
}

/* Icon Picker Grid */
.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    margin-top: 0.5rem;
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
}

.icon-option.selected {
    border-color: #a3bffa;
    background-color: #f1f3f5;
}

/* Icon-only Buttons */
.btn-icon {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 150ms ease-in-out;
}

.btn-icon:hover {
    background-color: #e9ecef;
}

.btn-icon-danger .icon-svg {
    color: #dc3545;
}

.data-table-row .actions .btn-icon {
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}

.data-table-row:hover .actions .btn-icon {
    opacity: 1;
}

/* Avatar Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 0.5rem;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 150ms ease-in-out;
}

.avatar-option:hover {
    border-color: #ced4da;
}

.avatar-option.selected {
    border-color: #a3bffa; /* Pastel blue */
}

.avatar-option img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Preference Item & Toggle Switch */
.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.preference-text p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch label {
    cursor: pointer;
    width: 50px;
    height: 26px;
    background: #ced4da;
    display: block;
    border-radius: 100px;
    position: relative;
}

.toggle-switch label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 90px;
    transition: 0.2s;
}

.toggle-switch input:checked + label {
    background: #a3bffa; /* Pastel blue */
}

.toggle-switch input:checked + label:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}


/* Announcements Section */
.announcements-section {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.announcements-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcements-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.announcements-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #111827;
}

.announcements-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.announcements-search {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.announcements-search input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.announcements-alert {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.announcements-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.announcements-meta__filter {
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    font-size: 0.85rem;
}

.announcement-composer {
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fdfcff 100%);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
    animation: announcementFade 220ms ease-out;
}

.announcement-composer__title {
    width: 100%;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.35rem 0 0.75rem;
    outline: none;
}

.announcement-composer__title + .announcement-composer__editor-card {
    margin-top: 0.5rem;
}

.announcement-composer__editor-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
}

.announcement-composer__editor .ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid #f3f4f6;
    padding: 0 0 0.5rem;
    margin-bottom: 0.5rem;
}

.announcement-composer__editor .ql-container.ql-snow {
    border: none;
    border-radius: 12px;
    padding: 0;
    min-height: 120px;
    font-size: 1rem;
    background: transparent;
}

.announcement-composer__fallback {
    width: 100%;
    min-height: 120px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem;
}

.announcement-composer__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.announcements-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
    animation: announcementFade 240ms ease-out;
}

.announcement-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.announcement-card__title {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}

.announcement-card__meta {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.announcement-card__meta-updated {
    color: #4b5563;
    font-style: italic;
}

.announcement-card__actions {
    display: flex;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.announcement-card:hover .announcement-card__actions {
    opacity: 1;
}

.announcement-card__body {
    margin-top: 0.75rem;
    color: #1f2937;
    line-height: 1.6;
}

.announcement-card__body p {
    margin: 0 0 0.8rem;
}

.announcement-card__body img {
    max-width: 100%;
    border-radius: 12px;
}

.announcement-card__attachment {
    margin-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.75rem;
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.announcement-card--editing {
    border: none;
    padding: 0;
    box-shadow: none;
}

.announcements-empty {
    border: 1px dashed #cbd5f5;
    border-radius: 16px;
    padding: 2rem 1.25rem;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
}

.link-button {
    border: none;
    background: none;
    color: #4f46e5;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.link-button:hover {
    text-decoration: underline;
}

@keyframes announcementFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-card,
    .announcement-composer {
        animation: none;
        transition: none;
    }
    .announcement-card__actions {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .announcements-header {
        flex-direction: column;
    }
    .announcements-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .announcement-composer__attachment {
        flex-direction: column;
        align-items: flex-start;
    }
    .announcement-card__header {
        flex-direction: column;
    }
}
input[type="text"],
input[type="email"],
input[type="password"],
.action-add-panel input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #dbe1f1;
    border-radius: 10px;
    box-sizing: border-box;
    min-height: 46px;
    font: inherit;
}

select,
.action-add-panel select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #dbe1f1;
    border-radius: 10px;
    background-color: #fff;
    color: #343a40;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2357648c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.65rem;
    cursor: pointer;
    min-height: 46px;
}

select:focus,
.action-add-panel select:focus,
.action-add-panel input[type="text"]:focus {
    border-color: #7c8cff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.25);
}
