@import url("https://fonts.googleapis.com/css2?family=Gabarito:wght@600;700&family=Roboto:wght@400;500;700&family=VT323&display=swap");

:root {
    --bg: #ffffff;
    --card: #ebf8ff;
    --text: #222222;
    --muted: #4b4b4b;
    --accent: #1b8eed;
    --accent-2: #ea2f28;
    --border: rgba(34, 34, 34, 0.12);
    --shadow: 0 14px 30px rgba(27, 142, 237, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

main.card {
    width: min(420px, 92vw);
    margin: 8vh auto 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    animation: rise 0.5s ease-out both;
}

.logo {
    display: block;
    max-width: 180px;
    margin: 0 auto 16px;
}

.logo.small {
    max-width: 40px;
    margin: 0;
}

h1 {
    margin: 8px 0 12px;
    font-size: 24px;
    font-family: "Gabarito", "Segoe UI", sans-serif;
    letter-spacing: 0.2px;
    color: var(--accent);
}

h2, h3 {
    font-family: "Gabarito", "Segoe UI", sans-serif;
    color: var(--accent-2);
}

p {
    color: var(--muted);
    margin-top: 0;
}

label {
    display: block;
    font-size: 14px;
    margin: 14px 0 6px;
}


input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
}

select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

input:focus {
    outline: 2px solid rgba(207, 92, 54, 0.25);
    border-color: rgba(207, 92, 54, 0.6);
}

button {
    width: 100%;
    padding: 12px 14px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(207, 92, 54, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(27, 142, 237, 0.28);
}


.alert {
    background: #fff5f5;
    border: 1px solid #ffd7d7;
    color: #b51616;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 12px 0 0;
}

.alert.success {
    background: #f1fbf6;
    border-color: #bfe5cc;
    color: #1f6b4b;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.hint {
    margin-top: 14px;
    font-size: 13px;
}

.hint a {
    color: var(--accent);
    text-decoration: none;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 253, 247, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.container {
    width: min(1400px, 96vw);
    margin: 28px auto;
}

nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.menu-card {
    display: block;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 10px 24px rgba(31, 26, 20, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(31, 26, 20, 0.14);
}

.menu-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-family: "Gabarito", "Segoe UI", sans-serif;
}

.menu-card p {
    margin: 0;
    color: var(--muted);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(207, 92, 54, 0.2);
}

.btn.small {
    padding: 8px 12px;
    font-size: 13px;
    box-shadow: none;
    line-height: 1.2;
    white-space: nowrap;
}

.btn.danger {
    background: var(--accent-2);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f0f0;
    color: var(--text);
}

.badge.success {
    background: #e6f8ee;
    color: #1f6b4b;
}

.inline-form {
    margin: 0;
    display: inline-block;
}

.team-send-form .btn {
    margin: 4px 0;
}

.btn.secondary {
    background: transparent;
    color: var(--accent-2);
    border: 1px solid var(--accent-2);
    box-shadow: none;
}

.tabs {
    display: flex;
    gap: 8px;
    margin: 14px 0 18px;
}

.tab {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--muted);
    background: #fff;
    font-size: 14px;
}

.tab.active {
    color: var(--accent-2);
    border-color: var(--accent-2);
    font-weight: 600;
}

.project-meta {
    color: #b3c2cc;
    font-size: 11px;
    margin: -10px 0 10px;
}

.table-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fixed-table {
    table-layout: fixed;
}

.fixed-table.cols-3 th,
.fixed-table.cols-3 td {
    width: 33.33%;
}

.fixed-table.cols-4 th,
.fixed-table.cols-4 td {
    width: 25%;
}

.fixed-table.cols-5 th,
.fixed-table.cols-5 td {
    width: 20%;
}

.task-row-done td {
    background: #e8f4ff;
}

.task-row-pending td {
    background: #fff3f3;
}

thead th {
    text-align: left;
    padding: 12px;
    background: #f3fbff;
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

.center {
    text-align: center;
}

.mono {
    font-family: "VT323", "Courier New", monospace;
    font-size: 15px;
    background: #000000;
    color: #90ee90;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #1a1a1a;
    display: inline-block;
    margin-top: 16px;
}

.bot-table .mono {
    margin-top: 0;
}


code {
    font-family: "VT323", "Courier New", monospace;
    background: #000000;
    color: #90ee90;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid #1a1a1a;
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #fff;
}

.avatar.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
    background: #f3fbff;
    text-transform: uppercase;
    position: absolute;
    inset: 0;
}

.avatar.small {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar-wrap.small {
    width: 28px;
    height: 28px;
}

.avatar-img {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.avatar-img.loaded {
    opacity: 1;
}
.avatar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.avatar-link {
    display: inline-flex;
}

.empty {
    color: var(--muted);
}

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.section-card {
    margin-top: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.events-card {
    margin-bottom: 18px;
}

.event-list {
    margin: 0;
    padding-left: 18px;
}

.event-list li {
    margin-bottom: 8px;
}

pre {
    background: #000000;
    color: #90ee90;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #1a1a1a;
    font-size: 15px;
    font-family: "VT323", "Courier New", monospace;
    overflow-x: auto;
}

.copy-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.copy-row pre {
    flex: 1;
    margin: 0;
}

.copy-btn {
    background: var(--accent-2);
}


fieldset {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px 14px;
    margin-top: 16px;
}

legend {
    padding: 0 6px;
    font-size: 14px;
    color: var(--muted);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px 12px;
    margin-top: 8px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.checkbox-person {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkbox-person input[type="checkbox"] {
    margin-left: 0;
}

.checkbox-person .avatar-wrap {
    display: inline-flex;
    flex: 0 0 auto;
}

.objective-card,
.task-card {
    border: 1px solid rgba(27, 142, 237, 0.18);
    border-radius: 16px;
    padding: 16px;
    background: #ebf8ff;
    margin-bottom: 16px;
}

.objective-header,
.task-header,
.tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tasks-block {
    margin-top: 16px;
}

.tasks-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}

.column-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.task-card {
    background: #ffffff;
    border-color: rgba(234, 47, 40, 0.18);
    width: 100%;
    box-sizing: border-box;
}

.tasks-list .task-card {
    margin-bottom: 12px;
    height: auto;
}

.task-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.task-actions .btn,
.task-actions button {
    width: auto;
}

.task-people .label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}

.multi {
    min-height: 90px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.objective-matrix {
    display: grid;
    gap: 32px;
    margin-top: 8px;
}

.objective-row {
    display: grid;
    grid-template-columns: repeat(var(--obj-cols), minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.objective-cell.empty {
    min-height: 60px;
}

.graph-node {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(27, 142, 237, 0.2);
    box-shadow: 0 12px 24px rgba(15, 71, 122, 0.08);
}

.graph-node-title {
    font-weight: 700;
    color: #1b8eed;
}

.graph-node-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

.graph-node-tasks {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.task-pill {
    background: rgba(234, 47, 40, 0.08);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: normal;
    line-height: 1.3;
    max-width: 100%;
    flex-wrap: wrap;
}

.task-pill.done {
    background: rgba(27, 142, 237, 0.28) !important;
    border: 1px solid rgba(27, 142, 237, 0.35);
}

.task-date {
    margin-left: 8px;
    color: #1b8eed;
    font-weight: 600;
}

.task-avatars {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
}

.task-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(27, 142, 237, 0.2);
}

.task-avatar.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #1b8eed;
    background: #fff;
}

.task-matrix {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.task-row-grid {
    display: grid;
    grid-template-columns: repeat(var(--task-cols), minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.task-cell {
    display: grid;
    align-content: start;
}

.task-cell.empty {
    min-height: 26px;
}

.tasks-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 12px 0;
}

.tasks-column {
    display: table-cell;
    vertical-align: top;
    padding-right: 0;
}

.tasks-list.tasks-grid {
    display: table !important;
    width: 100%;
    table-layout: fixed;
    border-spacing: 12px 0;
}

.tasks-list.tasks-grid .tasks-column {
    display: table-cell;
    vertical-align: top;
    width: 33.333%;
}

.link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    color: #1b8eed;
}

.calendar-card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.calendar-grid {
    display: grid;
    gap: 0;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    overflow: hidden;
}

.calendar-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.calendar-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
}

.calendar-head div {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #5f6368;
    text-align: center;
    padding: 8px 0;
    background: #f7f9fc;
    border-bottom: 1px solid #e3e8ef;
}

.calendar-cell {
    background: #ffffff;
    padding: 8px 8px 10px;
    min-height: 110px;
    display: grid;
    gap: 6px;
    align-content: start;
    border-right: 1px solid #e3e8ef;
    border-bottom: 1px solid #e3e8ef;
}

.calendar-cell.muted-cell {
    background: #fafbfc;
    color: #9aa0a6;
}

.calendar-date {
    font-weight: 600;
    color: #3c4043;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.calendar-task {
    font-size: 12px;
    line-height: 1.35;
    background: #e8f0fe;
    border-left: 3px solid #1b8eed;
    color: #1f3b57;
    padding: 4px 6px;
    border-radius: 6px;
}

.calendar-task .accent {
    color: #1b8eed;
    font-weight: 600;
}

.calendar-task .accent.red {
    color: #ea2f28;
}

.calendar-grid.week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-grid.week .calendar-cell {
    min-height: 180px;
}

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

@media (max-width: 720px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .calendar-list-grid {
        grid-template-columns: 1fr;
    }
}
