.trello-style-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.trello-modal-content {
    width: 950px;
    min-height: 90vh;
    background: #f4f5f7;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #dfe1e6;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #172b4d;
    line-height: 1.2;
    flex-shrink: 0;
}

.date-set {
    font-size: 12px;
    color: #5e6c84;
    margin-top: 5px;
}

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

.header-actions select {
    padding: 4px;
    font-size: 14px;
    border: 1px solid #dfe1e6;
    border-radius: 3px;
    background: #fff;
    color: #172b4d;
}

.close-modal-btn {
    font-size: 24px;
    font-weight: bold;
    color: #5e6c84;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: #172b4d;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.tab-btn.active {
    background: #f0f0f0;
    color: #000;
    border-bottom: 2px solid #007bff;
}

.hidden {
    display: none;
}

.section {
    margin-bottom: 5px;
}

.edit-btn img {
    width: 16px;
    height: 16px;
}

.executor-list select {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px;
}

.comment-item {
    margin: 5px 0;
}

.edit-executor img {
    width: 16px;
    height: 16px;
}

.executor-list input {
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.modal-body {
    max-height: calc(85vh - 100px);
    width: 100%;
    overflow-y: auto;
    flex-grow: 1;
}

.static-sections {
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dfe1e6 #f4f5f7;
}

.static-sections::-webkit-scrollbar {
    width: 5px;
}

.static-sections::-webkit-scrollbar-thumb {
    background: #dfe1e6;
    border-radius: 2px;
}

.static-sections::-webkit-scrollbar-track {
    background: #f4f5f7;
}

.section h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #172b4d;
}

.editable-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editable-field span {
    width: 100%;
    font-size: 14px;
    color: #172b4d;
    padding: 6px;
    background: #fff;
    border-radius: 3px;
    word-wrap: break-word;
    word-break: normal;
}

.editable-field input,
.editable-field textarea {
    flex: 1;
    resize: none;
    font-size: 14px;
    padding: 6px;
    border: 1px solid #dfe1e6;
    border-radius: 3px;
    background: #fff;
}

.editable-field button {
    font-size: 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: #5e6c84;
    transition: color 0.2s;
}

.editable-field button:hover {
    color: #172b4d;
}

.hidden {
    display: none;
}

.executor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.executor-item {
    display: flex;
    align-items: center;
    border-radius: 3px;
    padding: 2px 5px;
    font-size: 14px;
    color: #172b4d;
}

.executor-item button {
    margin-left: 5px;
    font-size: 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: #5e6c84;
    transition: color 0.2s;
}

.executor-item button:hover {
    color: #172b4d;
}

.add-executor-btn {
    padding: 4px;
    border-radius: 3px;
    cursor: pointer;
}

.add-executor-btn img {
    width: 16px;
    height: 16px;
}

#addExecutorSelect {
    padding: 4px;
    font-size: 14px;
    border: 1px solid #dfe1e6;
    border-radius: 3px;
    background: #fff;
    color: #172b4d;
}

.file-list {
    margin-top: 10px;
}

.file-item {
    padding: 6px 0;
}

.file-item a {
    font-size: 14px;
    color: #0052cc;
    text-decoration: none;
}

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

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

.status-label {
    color: #666
}

.comment-item {
    padding: 10px;
    background: #fff;
    border-radius: 3px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

.comment-item small {
    color: #5e6c84;
    font-size: 12px;
}

.comment-item button {
    font-size: 14px;
    border: none;
    background: none;
    cursor: pointer;
    color: #5e6c84;
    transition: color 0.2s;
}

.comment-item button:hover {
    color: #172b4d;
}

#newComment {
    width: 100%;
    min-height: 40px;
    padding: 6px;
    border: 1px solid #dfe1e6;
    border-radius: 3px;
    font-size: 14px;
    background: transparent;
    resize: none;
    position: relative;
    z-index: 2;
}

.comment-wrapper {
    position: relative;
    width: 915px;
}

.last-comment-overlay {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 14px;
    color: #5e6c84;
    pointer-events: none;
    z-index: 1;
    white-space: pre-wrap;
    max-width: 100%;
    overflow: hidden;
}

#addComment {
    margin-top: 2px;
    padding: 6px 12px;
    background: #0052cc;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

#addComment:hover {
    background: #003d99;
}


.modal-footer {
    text-align: right;
    padding: 10px;
    text-align: right;
    border-top: 1px solid #dfe1e6;
    background: #f4f5f7;
}

.modal-footer button {
    padding: 6px 12px;
    margin-left: 10px;
    font-size: 14px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

#saveBtn {
    background: #0052cc;
    color: #fff;
}

#saveBtn:hover {
    background: #003d99;
}

#closeBtn {
    background: #dfe1e6;
    color: #172b4d;
}

#closeBtn:hover {
    background: #d3d6db;
}





.modale {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    animation: fadeIn 0.3s ease-out;
}

.modal-contente {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 20px;
    animation: slideUp 0.3s ease-in-out;
    max-height: 90vh;
    overflow-y: hidden;
}

.modale-header {
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modale-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
}

.accordion-item {
    margin-bottom: 10px;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
}

.header-wrapper {
    width: 100%;
}

.accordion-header h3 {
    margin: 0 10px 0 0;
    white-space: nowrap;
}

.accordion-line {
    flex-grow: 1;
    height: 1px;
    background: #ccc;
    margin: 5px 0;
}

.accordion-arrows {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.accordion-arrow {
    width: 16px;
    height: 16px;
}

.accordion-content {
    padding: 10px;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.hidden {
    display: none;
}

.edit-btn img {
    width: 16px;
    height: 16px;
}

.executor-list select {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px;
}

.modal-contente h3 {
    padding-left: 5px;
    color: #34495e;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px;
}

.add-executor-section {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.input-with-clear {
    display: flex;
    gap: 8px;
    align-items: center;
}

#newGlobalExecutor {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

#newGlobalExecutor:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);
}

#saveGlobalExecutor.action-btn {
    padding: 6px 10px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#saveGlobalExecutor.action-btn:hover {
    background: #2980b9;
}

.all-executors-section {
    padding: 5px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.executors-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f8f9fa;
    border-radius: 5px;
    background: #fff;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.executors-list::-webkit-scrollbar {
    width: 6px;
}

.executors-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 20px;
}

.executors-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 20px;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
}

.executors-list::-webkit-scrollbar-thumb:hover {
    background-color: #a0aec0;
}

.executor-list-item {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #fff;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
}

.executor-list-item:hover {
    background-color: #f8f9fa;
}

.executor-name {
    font-size: 14px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.executor-actions {
    display: flex;
    gap: 5px;
}

.edit-executor-btn,
.delete-executor-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 5px;
}

#editTheme,
#editDescription,
#newComment,
.edit-executor-input,
.edit-executor-phone {
    outline: none;
    border-radius: 3px;
    border-color: #3498db;
    border-width: 1px;
}




.edit-executor-btn:hover {
    color: #3498db;
}

.delete-executor-btn:hover {
    color: #e74c3c;
}

.edit-executor-panel {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
    border: 1px solid #e9ecef;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit-executor-panel.hidden {
    display: none;
}

#editExecutorInput {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
}

#editExecutorInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);
}

.subtask-description,
.subtask-executor {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
}

.subtask-description:focus,
.subtask-executor:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);
}

#editProject:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);
}

#editDateSet:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);
}

select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);
}