/* Paleta baseada na imagem: marrom, mostarda, cinza claro, branco */
body {
    background: #e0e0e0;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

nav {
    background: #8c6b6b;
    color: #fff;
    padding: 16px 24px;
    margin-bottom: 24px;
    border-bottom: 2px solid #5a4747;
}

nav[style*='sticky'] {
    box-shadow: 0 2px 12px #0002;
    background: #333;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    padding-right: 110px;
}

.folders-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.folder-block {
    background: #c7a72a;
    border-radius: 8px;
    padding: 0 0 32px 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px #0001;
}

.folder-title {
    background: #a48d1c;
    color: #222;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px 32px;
    border-radius: 0 0 8px 0;
    display: inline-block;
    margin-bottom: 18px;
    margin-top: 0;
}

.folder-title span {
    transition: color 0.2s;
}

.folder-title span:hover {
    color: #5a4747;
}

.lists-carousel {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    gap: 32px;
    padding: 16px 24px 8px 24px;
    scroll-behavior: smooth;
    position: relative;
    min-height: 220px;
    scrollbar-width: thin;
    scrollbar-color: #c7a72a #e0e0e0;
}

.lists-carousel::-webkit-scrollbar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 8px;
}

.lists-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #c7a72a 60%, #a48d1c 100%);
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.lists-carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #a48d1c 60%, #c7a72a 100%);
}

.list-card {
    background: #f5f5f5;
    border-radius: 6px;
    min-width: 200px;
    max-width: 200px;
    height: 200px;
    flex: 0 0 200px;
    box-shadow: 0 4px 24px #0002, 0 1.5px 6px #a48d1c33;
    padding: 0 0 12px 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.list-card:hover {
    box-shadow: 0 8px 32px #0003, 0 2px 12px #a48d1c44;
}

.list-card-header {
    background: #e0e0e0;
    width: 100%;
    border-radius: 6px 6px 0 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.08rem;
    padding: 8px 0;
    margin-bottom: 8px;
    position: relative;
}

.list-card-header span {
    transition: color 0.2s;
}

.list-card-header span:hover {
    color: #8c6b6b;
}

.tasks-scroll {
    max-height: 180px;
    min-height: 60px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #c7a72a #e0e0e0;
    min-width: 0;
}

.tasks-scroll::-webkit-scrollbar {
    width: 7px;
    background: #e0e0e0;
    border-radius: 8px;
}

.tasks-scroll::-webkit-scrollbar-thumb {
    background: #c7a72a;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.tasks-scroll::-webkit-scrollbar-thumb:hover {
    background: #a48d1c;
}

.task-item {
    background: none;
    border-radius: 0;
    font-size: 0.89rem;
    margin: 0 0 2px 0;
    padding: 1px 0 1px 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: none;
    font-weight: 400;
    border-bottom: 1px solid #eee;
    min-height: 18px;
    min-width: 0;
    width: 100%;
}

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

.task-title {
    flex: 1 1 0%;
    min-width: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.93rem;
    transition: color 0.2s;
}

.task-title:hover {
    color: #8c6b6b;
}

.task-date {
    color: #888;
    font-size: 0.88em;
    margin-left: 4px;
    white-space: nowrap;
}

.task-status {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    min-width: 24px;
}

.task-item span[style*='font-weight: bold'] {
    font-size: 1rem;
}

.task-item>div {
    min-width: 0;
    flex-shrink: 1;
}

/* Botões e filtros */
.top-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.btn {
    background: #8c6b6b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #a48d1c;
    color: #222;
}

/* Carrossel setas */
.carousel-arrow {
    background: none;
    border: none;
    font-size: 2rem;
    color: #222;
    cursor: pointer;
    align-self: center;
    margin: 0 8px;
    transition: color 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

/* Responsividade */
@media (max-width: 900px) {
    .lists-carousel {
        gap: 16px;
    }

    .list-card {
        min-width: 140px;
        max-width: 160px;
        flex: 0 0 140px;
    }

    .main-content {
        padding-right: 70px;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 0 4px;
    }

    .folder-title {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .lists-carousel {
        gap: 8px;
        padding: 8px 4px;
    }
}

.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #d66;
    border-radius: 4px;
    background: #fff;
    display: inline-block;
    position: relative;
    margin-right: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.task-checkbox:checked {
    border-color: #2ecc40;
    background: #2ecc40;
}

.task-checkbox:after {
    content: '';
    display: none;
}

.task-checkbox:not(:checked) {
    border-color: #d66;
    background: #fff0f0;
}

/* Estilo para modais de adição */
.modal-form {
    background: #fff;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    border-radius: 12px;
    min-width: 320px;
    max-width: 95vw;
    box-shadow: 0 8px 32px #0002, 0 1.5px 6px #c7a72a44;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.modal-form h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
    color: #8c6b6b;
    text-align: center;
}

.modal-form label {
    font-weight: 500;
    margin-bottom: 0.2rem;
    color: #333;
}

.modal-form input[type="text"],
.modal-form textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #c7a72a;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 1rem;
    background: #faf9f6;
    transition: border-color 0.2s;
}

.modal-form input[type="text"]:focus,
.modal-form textarea:focus {
    border-color: #8c6b6b;
    outline: none;
}

.modal-form input[type="submit"],
.modal-form button[type="submit"] {
    background: #8c6b6b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-weight: bold;
    font-size: 1.05rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.modal-form input[type="submit"]:hover,
.modal-form button[type="submit"]:hover {
    background: #a48d1c;
    color: #222;
}

.modal-form .error {
    color: #d66;
    font-size: 0.98rem;
    margin-bottom: 0.7rem;
    text-align: center;
}

/* Botão de fechar modal */
.modal-form .close-modal {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8c6b6b;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.modal-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 1rem;
}

.delete-btn,
.save-btn {
    flex: 1 1 0;
    min-width: 140px;
    width: auto;
    justify-content: center;
    display: flex !important;
    align-items: center;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: bold;
    gap: 8px;
    line-height: 1.2;
    box-shadow: 0 2px 8px #0001;
    border: none;
    padding: 12px 0;
    text-decoration: none !important;
    height: 48px;
}

.delete-btn {
    background: #dc3545;
    color: #fff;
    transition: background 0.2s, box-shadow 0.2s;
}

.delete-btn:hover {
    background: #b52a37;
    color: #fff;
    box-shadow: 0 4px 16px #0002;
}

.delete-btn svg {
    margin: 0;
    vertical-align: middle;
    display: inline-block;
    height: 1.2em;
    width: 1.2em;
}

.save-btn {
    background: #8c6b6b;
    color: #fff;
    transition: background 0.2s, box-shadow 0.2s;
}

.save-btn:hover {
    background: #a48d1c;
    color: #fff;
    box-shadow: 0 4px 16px #0002;
}

.delete-icon svg {
    vertical-align: middle;
    margin-bottom: 2px;
}

#side-actions {
    position: fixed;
    right: 32px;
    top: 80px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: none;
}

#side-actions .btn {
    min-width: 120px;
    box-shadow: 0 2px 8px #0001;
    font-size: 1.05rem;
    border-radius: 8px;
}

@media (max-width: 700px) {
    #side-actions {
        right: 8px;
        top: 64px;
        gap: 8px;
    }

    #side-actions .btn {
        min-width: 90px;
        font-size: 0.98rem;
        padding: 8px 0;
    }

    nav[style*='sticky'] {
        font-size: 0.98rem;
        padding: 7px;
    }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
