* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family: Arial, sans-serif;

    background: #111;
    color: #eee;
}


a {
    color: inherit;
    text-decoration: none;
}


.container {
    width: min(1100px, 92%);
    margin: auto;
}


/* NAVBAR */

.navbar {
    border-bottom: 1px solid #292929;
    background: #151515;
}

.navbar-inner {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #aaa;
}

nav a:hover {
    color: white;
}


/* MAIN */

main {
    padding-top: 50px;
    padding-bottom: 80px;
}


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

    gap: 30px;

    margin-bottom: 35px;
}

.page-header h1 {
    margin: 0 0 8px;
}

.page-header p {
    margin: 0;
    color: #999;
}


/* BUTTONS */

.button {
    display: inline-block;

    border: 0;
    border-radius: 7px;

    padding: 10px 16px;

    background: #fff;
    color: #111;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}

.button:hover {
    opacity: 0.85;
}

.button.secondary {
    background: #292929;
    color: #eee;
}

.button.danger {
    background: #d33;
    color: white;
}


/* PROJECT GRID */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 20px;
}


.project-card {
    padding: 22px;

    border: 1px solid #292929;
    border-radius: 10px;

    background: #181818;
}


.project-card-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}


.project-card h2 {
    margin: 0;
    font-size: 20px;
}

.project-card h2 a:hover {
    text-decoration: underline;
}


.project-description {
    margin: 18px 0;

    line-height: 1.5;

    color: #bbb;
}


.muted {
    color: #666;
}


/* STATUS */

.status {
    display: inline-block;

    padding: 5px 9px;
    border-radius: 20px;

    background: #292929;
    color: #ccc;

    font-size: 12px;
    white-space: nowrap;
}

.status.large {
    font-size: 14px;
    padding: 8px 13px;
}

.status-planning {
    background: #292929;
    color: #6e1faf;
    border: 1px solid #6e1faf;
}

.status-in-development {
    background: #292929;
    color: #135ece;
    border: 1px solid #135ece;
}

.status-paused {
    background: #292929;
    color: #f0bc45;
    border: 1px solid #f0bc45;
}

.status-active {
    background: #292929;
    color: #34852b;
    border: 1px solid #34852b;
}

.status-completed {
    background: #292929;
    color: #1aff00;
    border: 1px solid #1aff00;
}

.status-archived {
    background: #292929;
    color: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.status-canceled {
    background: #292929;
    color: #ff0000;
    border: 1px solid #ff0000;
}


.project-card-footer {
    margin-top: 20px;
}


/* EMPTY STATE */

.empty-state {
    padding: 70px 20px;

    text-align: center;

    border: 1px dashed #333;
    border-radius: 10px;
}

.empty-state h2 {
    margin-top: 0;
}

.empty-state p {
    color: #888;

    margin-bottom: 25px;
}


/* FORMS */

.form-container {
    max-width: 650px;

    padding: 30px;

    border: 1px solid #292929;
    border-radius: 10px;

    background: #181818;
}


.form-group {
    margin-bottom: 22px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-weight: bold;
}


input,
textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #333;
    border-radius: 6px;

    background: #101010;
    color: white;

    font-family: inherit;
    font-size: 15px;
}


input:focus,
textarea:focus {
    outline: none;
    border-color: #666;
}


textarea {
    resize: vertical;
}


.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;
}


/* PROJECT PAGE */

.project-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;

    margin-bottom: 35px;
}


.project-header h1 {
    margin: 15px 0 10px;
}


.project-header p {
    color: #999;
}


.back-link {
    color: #888;
    font-size: 14px;
}

.back-link:hover {
    color: white;
}


.project-layout {
    display: grid;

    gap: 20px;
}



.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #777;
}

select {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid #333;
    border-radius: 6px;

    background: #101010;
    color: white;

    font-family: inherit;
    font-size: 15px;
}

select:focus {
    outline: none;
    border-color: #666;
}

.project-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


@media (max-width: 650px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .project-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

}

.panel {
    padding: 25px;

    border: 1px solid #292929;
    border-radius: 10px;

    background: #181818;
}


.panel-header {
    display: flex;

    align-items: center;
    justify-content: space-between;
}


.panel h2 {
    margin-top: 0;
}


.empty-panel {
    padding: 30px 0;

    text-align: center;

    color: #777;
}


.danger-panel {
    border-color: #422020;
}

.danger-panel p {
    color: #888;
}


/* FOOTER */

footer {
    padding: 25px 0;

    border-top: 1px solid #292929;

    color: #666;

    text-align: center;
}


/* MOBILE */

@media (max-width: 650px) {

    .navbar-inner {
        flex-direction: column;

        align-items: flex-start;

        padding: 15px 0;
    }

    nav {
        width: 100%;
    }

    .page-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .project-header {
        flex-direction: column;
    }

}

/* ICONS */

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #888;
}

.icon-link:hover {
    color: white;
}


/* PROJECT CARD FOOTER */

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-card-icons {
    display: flex;
    gap: 12px;
}


/* TODOS & LINKS */

.todo-list,
.link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;

    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.todo-item,
.link-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    border: 1px solid #292929;
    border-radius: 8px;

    background: #141414;
}

.todo-toggle-form {
    display: contents;
}

.todo-checkbox {
    width: 18px;
    height: 18px;

    accent-color: #f0bc45;
    cursor: pointer;
}

.todo-text {
    flex: 1;
}

.todo-completed .todo-text {
    text-decoration: line-through;
    color: #666;
}

.link-item a {
    flex: 1;
    color: #ddd;
}

.link-item a:hover {
    text-decoration: underline;
}

.todo-delete {
    background: none;
    border: none;

    color: #666;
    font-size: 18px;
    line-height: 1;

    padding: 0 4px;
    cursor: pointer;
}

.todo-delete:hover {
    color: #d33;
}

.todo-add-form,
.link-add-form {
    display: flex;
    gap: 10px;
}

.todo-add-form input,
.link-add-form input {
    flex: 1;
}


/* NOTES */

.notes-form textarea {
    margin-bottom: 15px;
}


@media (max-width: 650px) {

    .link-add-form {
        flex-direction: column;
    }

}