.character-sheet {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
    background: white;
    border: 2px solid #333;
}

.sheet-header {
    text-align: center;
    border-bottom: 2px solid #333;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.class-icon {
    width: 40px;
    height: 40px;
    background: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.sheet-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.player-party-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.level-section {
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 1rem;
}

.level-table {
    width: 100%;
    border-collapse: collapse;
}

.level-table th,
.level-table td {
    border: 1px solid #333;
    padding: 0.5rem;
    text-align: center;
}

.level-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.level-input {
    width: 100%;
    max-width: 60px;
    text-align: center;
    border: 1px solid #333;
}

.perks-section {
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 1rem;
}

.perk-item {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.perk-notes {
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 1rem;
}

.perk-notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.perk-notes-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.perk-note-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checked-icon {
    color: #28a745;
    font-weight: bold;
}

.items-section {
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 1rem;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
}

.item-icon {
    width: 30px;
    height: 30px;
    background: #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.item-input {
    flex: 1;
}

.notes-section {
    border: 1px solid #333;
    padding: 1rem;
    margin-bottom: 1rem;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.notes-text {
    width: 100%;
    height: 150px;
    border: 1px solid #333;
    padding: 0.5rem;
    resize: vertical;
}

.level-tracker {
    margin-top: 1rem;
    text-align: center;
}

.level-boxes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.level-box {
    width: 30px;
    height: 30px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.section-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.25rem;
}

@media (max-width: 480px) {
    .character-sheet {
        padding: 0.5rem;
    }

    .perk-notes-grid {
        grid-template-columns: 1fr;
    }

    .player-party-section {
        grid-template-columns: 1fr;
    }
}