@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&display=swap');



/* General Styling */
body {
    font-family: 'Mochiy Pop One', sans-serif;
    font-size: clamp(0.5rem, 1vw + 0.5rem, 1rem);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Add Task Button */
.add-task{
    background-color: #004085;
    color: #fff;
    padding: 10px 20px;
    border: none;
    outline: none;
    position: absolute;
    border-radius:0 10px 0 10px;
    right:0;
    top:0;
}

.tasklist-gradient {
    background: linear-gradient(135deg, #89f7fe, #66a6ff);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden; 
} 

.tasklist-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tasklist-body {
    color: #333;
}

.tasklist-header {
    margin-bottom: 30px;
}

.tasklist-logo {
    width: 60px;
}

.tasklist-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #004085;
}


.tasklist-table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    color: #333;
    table-layout: auto;
    border-spacing: 0;
    border-collapse: collapse;
}

.tasklist-table {
    min-width: 600px; 
    table-layout: fixed;
}

/* Table Row Styling */
.tasklist-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tasklist-member {
    font-weight: 600;
    color: #333;
}

.tasklist-task {
    color: #333;
}

/* Priority Badges */
.high-priority {
    background-color: #ff6b6b !important; 
}

.low-priority {
    background-color: #1dd1a1 !important;
}

.middle-priority {
    background-color: #feca57 !important; 
}

/* Actions Styling */
.tasklist-actions i {
    cursor: pointer;
}

.task-info {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius:10px;
    width:30%;
    padding:10px 20px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}
.task-info .task-info-badge {
    padding:5px;
    color: #FFF;
    border-radius:5px;
    margin-top:10px;
}
.task-info .canceled{
    background-color: #ff6b6b;
}
.task-info .completed{
    background-color: #1dd1a1;
}
.task-info .total{
    background-color: #004085;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tasklist-card {
        padding: 20px;
    }

    .tasklist-title {
        font-size: 1.8rem;
    }

    .tasklist-header img {
        width: 50px;
    }

    .task-info {
        width: 100%;
        margin-bottom: 10px;
    }

    .add-task {
        padding: 7px 15px;
        font-size: 0.9rem;
    }

    .tasklist-row {
        font-size: 0.85rem;
    }

    .tasklist-table-container {
        overflow-x: auto; 
    }

    .tasklist-table {
        min-width: 600px;
        table-layout: fixed;
    }
}

/* Styling for very small screens */
@media (max-width: 500px) {
    .tasklist-card {
        padding: 10px;
    }

    .tasklist-title {
        font-size: 1.6rem;
    }

    .add-task {
        font-size: 0.75rem;
    }

    .task-info {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .tasklist-table-container {
        overflow-x: auto; 
    }

    .tasklist-table {
        min-width: 500px; 
        table-layout: fixed;
    }
}
