/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tajawal", sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
}

/* ===== Main Containers ===== */
.d1 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.d2 {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.tasks-table {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
}

/* ===== Header ===== */
.d4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.h1-1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

/* ===== Buttons ===== */
.bt {
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.bt span {
    font-size: 22px;
}

/* Add Button */
.bt1 {
    background-color: #667eea;
    color: #fff;
}

.bt1:hover {
    background-color: #5563d6;
}

/* Delete */
.bt2 {
    background-color: #ff6b6b;
    color: #fff;
}

.bt2:hover {
    background-color: #e84141;
}

/* Done */
.bt3 {
    background-color: #2ecc71;
    color: #fff;
}

.bt3:hover {
    background-color: #27ae60;
}

/* Not Done */
.not-done {
    background-color: #f1c40f;
    color: #fff;
}

.not-done:hover {
    background-color: #d4ac0d;
}

/* Edit */
.bt4 {
    background-color: #3498db;
    color: #fff;
}

.bt4:hover {
    background-color: #2980b9;
}

/* ===== Tasks ===== */
.tasks {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
    border-right: 6px solid #667eea;
}

.task:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Completed Task */
.task.done {
    background-color: #eafaf1;
    border-right-color: #2ecc71;
}

.task.done .h2-1 {
    text-decoration: line-through;
    color: #888;
}

/* ===== Task Info ===== */
.info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h2-1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.History {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #777;
}

.History span.material-symbols-outlined {
    font-size: 18px;
}

/* ===== Actions ===== */
.actions {
    display: flex;
    gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 500px) {
    .h1-1 {
        font-size: 22px;
    }

    .h2-1 {
        font-size: 16px;
    }

    .bt {
        width: 36px;
        height: 36px;
    }

    .bt span {
        font-size: 18px;
    }
}