body {
    margin: 0;
    padding: 0;

    background: #081421;
    color: #f5f1e8;

    font-family: Arial, Helvetica, sans-serif;
}

.topbar {
    background: #122232;
    border-bottom: 1px solid #29445b;

    padding: 1rem 2rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar h1 {
    margin: 0;
    color: #f6c453;
}

.status-pill {
    background: #264653;
    color: #d9f3ff;

    padding: 0.45rem 0.85rem;
    border-radius: 999px;

    font-size: 0.85rem;
}

.page-content {
    padding: 2rem;
}

.card {
    background: #162535;

    border: 1px solid #35516a;
    border-radius: 14px;

    padding: 1.5rem;

    max-width: 1000px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.ticket-list {
    list-style: none;
    padding: 0;
}

.ticket-list li {
    padding: 0.8rem 0;

    border-bottom: 1px solid #29445b;
}

.ticket-status {
    float: right;

    background: #20394f;

    padding: 0.2rem 0.6rem;
    border-radius: 999px;

    font-size: 0.8rem;
}

.empty-state {
    color: #c4d0db;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 1rem;
}

.button {
    display: inline-block;

    background: #f6c453;
    color: #081421;

    padding: 0.7rem 1rem;

    border-radius: 8px;
    text-decoration: none;
    border: none;

    font-weight: bold;
    cursor: pointer;
}

.button:hover {
    background: #ffd978;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
}

.ticket-table th,
.ticket-table td {
    text-align: left;
    padding: 0.8rem;

    border-bottom: 1px solid #29445b;
}

.form-group {
    margin-bottom: 1.2rem;

    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1rem;
}

input,
textarea,
select {
    margin-top: 0.4rem;

    background: #0f1d2b;
    color: #f5f1e8;

    border: 1px solid #35516a;
    border-radius: 8px;

    padding: 0.8rem;

    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.nav-links {
    margin-top: 0.6rem;

    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #d9f3ff;
    text-decoration: none;

    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #f6c453;
}

.ticket-link {
    color: #f6c453;
    text-decoration: none;
}

.ticket-link:hover {
    color: #ffd978;
}

.ticket-subtitle {
    margin-top: 0.3rem;
    color: #c7d5e0;
}

.detail-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 1rem;

    margin-top: 1.5rem;
}

.detail-item {
    background: #10202f;

    border: 1px solid #29445b;
    border-radius: 10px;

    padding: 1rem;
}

.detail-item label {
    display: block;

    color: #9fb6c8;

    font-size: 0.8rem;
    text-transform: uppercase;

    margin-bottom: 0.5rem;
}

.description-block,
.events-block {
    margin-top: 2rem;
}

.description-text {
    background: #10202f;

    border: 1px solid #29445b;
    border-radius: 10px;

    padding: 1rem;

    line-height: 1.6;
}

.event-list {
    list-style: none;
    padding: 0;
}

.event-list li {
    background: #10202f;

    border: 1px solid #29445b;
    border-radius: 10px;

    padding: 1rem;

    margin-bottom: 1rem;
}

.event-time {
    margin-top: 0.6rem;

    color: #8ea5b7;

    font-size: 0.85rem;
}

.comment-block {
    margin-top: 2rem;
}

.stats-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 1rem;

    margin-bottom: 2rem;
}

.stat-card {
    background: #162535;

    border: 1px solid #35516a;
    border-radius: 14px;

    padding: 1.5rem;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.stat-label {
    color: #9fb6c8;

    font-size: 0.9rem;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 0.6rem;

    font-size: 2rem;
    font-weight: bold;

    color: #f6c453;
}

.filter-bar {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

    gap: 1rem;

    margin-bottom: 1.5rem;
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 0.7rem;
}

.secondary-button {
    background: #20394f;
    color: #d9f3ff;
}

.secondary-button:hover {
    background: #294c68;
}

.project-summary-card {
    margin-bottom: 2rem;
}

.button-row {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.button-row form {
    margin: 0;
}

.danger-button {
    background: #8f2d2d;
    color: #fff;
}

.danger-button:hover {
    background: #b23b3b;
}
/* --- Todos --- */
.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #29445b;
}

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

.todo-main {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1;
}

.todo-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.todo-text {
    font-size: 1rem;
}

.todo-notes {
    font-size: 0.85rem;
    color: #9fb6c8;
}

.todo-check {
    background: #10202f;
    color: #4caf50;
    border: 1px solid #4caf50;
    border-radius: 6px;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
}

.todo-check:hover {
    background: #4caf50;
    color: #fff;
}

.todo-check-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #1a3a1a;
    color: #4caf50;
    border-radius: 6px;
    font-size: 1rem;
    flex-shrink: 0;
}

.todo-delete {
    background: transparent;
    color: #8f2d2d;
    border: 1px solid #8f2d2d;
    border-radius: 6px;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.todo-delete:hover {
    background: #8f2d2d;
    color: #fff;
}

.todo-item-done .todo-text {
    color: #9fb6c8;
    text-decoration: line-through;
}
