.ctl-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.ctl-header {
    margin-bottom: 25px;
}

.ctl-header h2 {
    margin: 0 0 5px;
    font-size: 30px;
}

.ctl-header p {
    margin: 0;
    color: #666;
}


/* Statistics */

.ctl-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.ctl-stat {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.ctl-stat-number {
    display: block;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ctl-stat-label {
    display: block;
    color: #777;
}


/* Task */

.ctl-task-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 18px;
}

.ctl-task-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ctl-task-top h3 {
    margin: 0;
    font-size: 20px;
}

.ctl-description {
    margin-top: 15px;
    color: #555;
    line-height: 1.6;
}


/* Status */

.ctl-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.ctl-status-pending {
    background: #f8d7da;
    color: #842029;
}

.ctl-status-progress {
    background: #fff3cd;
    color: #664d03;
}

.ctl-status-completed {
    background: #d1e7dd;
    color: #0f5132;
}


/* Task information */

.ctl-task-info {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ctl-task-info strong,
.ctl-task-info span {
    display: block;
}

.ctl-task-info strong {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}


/* Buttons */

.ctl-button {
    display: inline-block;
    background: #2271b1;
    color: #ffffff !important;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.ctl-button:hover {
    background: #135e96;
}

.ctl-complete-form {
    margin-top: 20px;
}


/* Completed */

.ctl-completed-message {
    margin-top: 20px;
    padding: 10px 15px;
    background: #d1e7dd;
    color: #0f5132;
    border-radius: 5px;
    font-weight: 600;
}


/* Success */

.ctl-success {
    max-width: 1000px;
    margin: 20px auto;
    padding: 12px 18px;
    background: #d1e7dd;
    color: #0f5132;
    border-radius: 5px;
}


/* No tasks */

.ctl-no-tasks {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.ctl-no-tasks h3 {
    margin-top: 0;
}


/* Login */

.ctl-login-message {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}


/* Mobile */

@media (max-width: 700px) {

    .ctl-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctl-task-top {
        display: block;
    }

    .ctl-status {
        margin-top: 10px;
    }

    .ctl-task-info {
        display: block;
    }

    .ctl-task-info > div {
        margin-bottom: 12px;
    }

}
/* ==========================================================
   TASK DETAILS
   ========================================================== */

.ctl-task-actions {
    margin-top: 20px;
}

.ctl-back {
    margin-bottom: 20px;
}

.ctl-back a {
    text-decoration: none;
    font-weight: 600;
}

.ctl-detail-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.ctl-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.ctl-detail-header h2 {
    margin: 0 0 5px;
    font-size: 28px;
}

.ctl-detail-header p {
    margin: 0;
    color: #777777;
}

.ctl-detail-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ctl-detail-info strong,
.ctl-detail-info span {
    display: block;
}

.ctl-detail-info strong {
    font-size: 12px;
    color: #777777;
    margin-bottom: 5px;
}

.ctl-detail-description {
    margin-top: 30px;
}

.ctl-detail-description h3 {
    margin-bottom: 10px;
}

.ctl-detail-action {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.ctl-overdue {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8d7da;
    color: #842029;
    border-radius: 5px;
    font-weight: 600;
}

@media (max-width: 700px) {

    .ctl-detail-card {
        padding: 20px;
    }

    .ctl-detail-header {
        display: block;
    }

    .ctl-detail-header .ctl-status {
        margin-top: 12px;
    }

    .ctl-detail-info {
        grid-template-columns: 1fr;
    }

}