* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background: #121212;
    color: #e0e0e0;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.task-toggle {
    display: none;
}

.task-details {
    width: 0;
    background: #1e1e1e;
    overflow: hidden;
    transition: width 0.3s ease;
    border-right: 1px solid #333;
}

.task-toggle:checked ~ .task-details {
    width: 350px;
}

/* Contenido del panel de detalles */
.task-content {
    padding: 20px;
    display: none;
    border-bottom: 1px solid #333;
}

/* Mostrar contenido específico cuando se selecciona una tarea */
#task1:checked ~ .task-details #content1,
#task2:checked ~ .task-details #content2,
#task3:checked ~ .task-details #content3,
#task4:checked ~ .task-details #content4,
#task5:checked ~ .task-details #content5 {
    display: block;
}

.task-content__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

.task-preview {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
}

.task-preview__title {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.task-preview__priority,
.task-preview__date,
.task-preview__description {
    font-size: 1rem;
    color: #b0b0b0;
    margin-top: 10px;
}

/* Área principal */
.main-content {
    flex: 1;
    background: #1e1e1e;
    border-left: 1px solid #333;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #252525;
    border-bottom: 1px solid #333;
}

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

.header__profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #444;
}

.header__profile-name {
    font-weight: bold;
    color: #ffffff;
}

.header__title {
    font-size: 1.5rem;
    color: #ffffff;
}

.header__add-btn {
    padding: 8px 15px;
    background: #333;
    color: #888;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
    font-size: 1rem;
}


.task-list {
    padding: 20px;
}

.task-list__title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffffff;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.task-item {
    margin-bottom: 15px;
    background: #252525;
    border-radius: 8px;
    border: 1px solid #444;
    overflow: hidden;
    transition: transform 0.2s;
}

.task-item:hover {
    transform: translateX(5px);
    border-color: #555;
}

.task-item__label {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    gap: 15px;
}

.task-item__priority {
    width: 10px;
    height: 40px;
    border-radius: 5px;
}

.task-item__priority--high {
    background: #ff5555;
}

.task-item__priority--medium {
    background: #ffaa00;
}

.task-item__priority--critical {
    background: #ff0000;
}

.task-item__priority--low {
    background: #55aaff;
}

.task-item__info {
    flex: 1;
}

.task-item__title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.task-item__date {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.task-item__status {
    padding: 5px 10px;
    background: #333;
    color: #ffaa00;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .task-toggle:checked ~ .task-details {
        width: 100%;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .task-item__label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-item__priority {
        width: 100%;
        height: 5px;
    }
}