:root {
    --primary-color: #98C9A3;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #f5f5f5;
    --danger: #ff4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--gray);
}

.container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 600px;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--black);
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-title {
    font-size: 1.2rem;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 100%;
}

.item-input {
    display: flex;
    gap: 0.5rem;
}

input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    flex: 1;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

button:hover {
    opacity: 0.9;
}

.add-btn {
    background-color: var(--primary-color);
    color: var(--black);
}

.checklist-container {
    margin: 1rem 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#itemsList {
    list-style: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#itemsList h3 {
    color: var(--black);
    font-size: 1.1rem;
    padding: 0.5rem;
    margin: 1.5rem 0 1rem;
    border-bottom: 2px solid var(--primary-color);
    text-align: left;
}

#itemsList h3:first-child {
    margin-top: 0;
}

.checklist-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: var(--gray);
    margin-bottom: 0.5rem;
    border-radius: 5px;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.checklist-item:hover {
    background-color: #eee;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checklist-item span {
    font-size: 1rem;
    color: var(--black);
}

.item-class-tag {
    position: static !important;
    background-color: var(--primary-color);
    color: var(--black);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.remove-btn {
    background-color: var(--danger);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Ajuste para mobile */
@media (max-width: 480px) {
    .checklist-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem;
        padding: 0.6rem;
    }

    .item-class-tag {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .remove-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.export-btn {
    background-color: #4CAF50;
    color: white;
}

.clear-btn {
    background-color: #ff9800;
    color: white;
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .item-input {
        flex-direction: column;
    }

    .actions {
        flex-direction: column;
    }
}

.class-manager {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--gray);
    border-radius: 5px;
}

.class-manager h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--black);
}

.class-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.classes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.class-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: var(--white);
    border-radius: 5px;
    font-size: 0.9rem;
}

.class-tag button {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

.class-select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
}

.checklist-item {
    position: relative;
}

.item-class-tag {
    position: absolute;
    right: 70px;
    padding: 0.2rem 0.5rem;
    background-color: var(--primary-color);
    color: var(--black);
    border-radius: 3px;
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .class-input {
        flex-direction: column;
    }
    
    .item-class-tag {
        position: static;
        margin-left: auto;
        margin-right: 0.5rem;
    }
} 