/* Estilos Gerais */
body {
    background-color: #f5f5f5;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#postit-board {
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Estilos do Post-it */
.postit {
    position: absolute;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: move;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    min-height: 150px;
    color: #000000;
    transition: box-shadow 0.3s, transform 0.2s;
}

.postit:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Cores suaves dos Post-its */
.postit.yellow { background-color: #fff9c4; }
.postit.blue { background-color: #bbdefb; }
.postit.green { background-color: #c8e6c9; }
.postit.pink { background-color: #f8bbd0; }
.postit.purple { background-color: #e1bee7; }
.postit.orange { background-color: #ffe0b2; }
.postit.red { background-color: #ffcdd2; }
.postit.teal { background-color: #b2dfdb; }
.postit.indigo { background-color: #c5cae9; }
.postit.brown { background-color: #d7ccc8; }

/* Cabeçalho do Post-it */
.postit-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}

/* Título do Post-it */
.postit-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 8px;
    border-radius: 4px;
    border: none;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: calc(100% - 16px);
}

.postit-title:focus {
    background: rgba(255, 255, 255, 0.5);
}

/* Conteúdo do Post-it */
.postit-content {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    resize: none;
    outline: none;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 16px;
    flex-grow: 1;
    padding: 5px;
    margin-top: 0;
}

.postit-content:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Botões do Post-it */
.postit-delete,
.postit-settings,
.postit-add,
.postit-share {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.postit-delete {
    opacity: 0.5;
    color: #dc3545;
    padding: 0 5px;
    margin-left: 5px;
}

.postit-delete:hover {
    opacity: 1;
    transform: scale(1.1);
}

.postit-settings {
    opacity: 0.5;
    color: inherit;
    padding: 0 5px;
}

.postit-settings:hover {
    opacity: 1;
    transform: scale(1.1);
}

.postit-add {
    position: absolute;
    bottom: 5px;
    right: 5px;
    opacity: 0.3;
}

.postit-add:hover {
    opacity: 0.8;
}

.postit-share {
    position: absolute;
    bottom: 5px;
    left: 5px;
    opacity: 0.5;
}

.postit-share:hover {
    opacity: 0.8;
}

/* Modal de Configurações */
.modal-content {
    border-radius: 10px;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.color-option.active {
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.color-option.yellow { background-color: #fff9c4; }
.color-option.blue { background-color: #bbdefb; }
.color-option.green { background-color: #c8e6c9; }
.color-option.pink { background-color: #f8bbd0; }
.color-option.purple { background-color: #e1bee7; }
.color-option.orange { background-color: #ffe0b2; }
.color-option.red { background-color: #ffcdd2; }
.color-option.teal { background-color: #b2dfdb; }
.color-option.indigo { background-color: #c5cae9; }
.color-option.brown { background-color: #d7ccc8; }

/* Sliders de Tamanho */
.form-range {
    width: 100%;
    margin: 15px 0;
}

.form-label {
    margin-top: 10px;
    font-weight: 500;
}

/* Estilo para quando estiver arrastando */
.postit.dragging {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .postit {
        width: 200px !important;
        height: 200px !important;
    }

    .postit-content,
    .postit-title {
        font-size: 14px;
    }
}
