body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 600px;
    width: 100%;
}
.card {
    background-color: rgba(42, 42, 74, 0.9);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.847);
    padding: 25px;
    margin-bottom: 30px;
}
.header-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00000077;
    margin-bottom: 5px;
    flex-grow: 1;
}
.header-card p {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 0;   
}
.header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.progress-section {
    text-align: right;
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #4a4a7a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-left: auto;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #4a4a7a;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group #prioritySelect {
    border-radius: 0;
}

.input-group .btn-add {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-control {
    background-color: rgba(58, 58, 90, 0.9);
    border: 1px solid #4a4a7a;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 15px;
    height: auto;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.form-control::placeholder {
    color: #b0b0b0;
}

.form-control:focus {
    background-color: rgba(58, 58, 90, 0.9);
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
    z-index: 2;
}

/* --- HIGHLIGHT STYLES FOR DROPDOWN --- */
#prioritySelect {
    background-color: rgba(58, 58, 90, 0.9);
    border: 1px solid #6a5acd; /* Accent color border */
    color: #ffffff;
    max-width: 150px;
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
    z-index: 1;
    position: relative;
}

#prioritySelect:focus {
    border-color: #7b68ee; /* Lighter accent color */
    box-shadow: 0 0 10px rgba(123, 104, 238, 0.7); /* Glowing highlight effect */
    color: #ffffff;
    z-index: 3; /* Ensure highlight appears above other elements */
}
/* --- END HIGHLIGHT STYLES --- */


.btn-add {
    background-color: #6a5acd;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.btn-add:hover {
    background-color: #7b68ee;
    transform: translateY(-2px);
}

.btn-add:active {
    transform: translateY(0);
}

.list-group-item {
    background-color: rgba(58, 58, 90, 0.9);
    border: 1px solid #4a4a7a;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
    gap: 15px;
}

.list-group-item:last-child {
    margin-bottom: 0;
}

.form-check-input {
    width: 1.4em;
    height: 1.4em;
    margin-right: 15px;
    border: 2px solid #6a5acd;
    background-color: #4a4a7a;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #6a5acd;
    border-color: #6a5acd;
    box-shadow: none;
}

.form-check-input:checked::before {
    content: "\2713";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1em;
    color: #ffffff;
}

.todo-text {
    flex-grow: 1;
    font-size: 1.1rem;
    color: #ffffff;
    word-break: break-word;
    padding-right: 10px;
}

.todo-text.completed {
    text-decoration: line-through;
    color: #a0a0a0;
}

.todo-meta {
    display: flex;
    align-items: center;
}

.badge {
    padding: 0.5em 0.75em;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 0.375rem;
}

.badge-high {
    color: #fff;
    background-color: #b02a37;
}

.badge-medium {
    color: #000;
    background-color: #ffc107;
}

.badge-low {
    color: #fff;
    background-color: #28a745;
}

.todo-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
}

.btn-edit {
    background-color: #007bff;
    color: white;
}

.btn-edit:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #b02a37;
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .header-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .progress-section {
        width: 100%;
        text-align: left;
        margin-top: 20px;
    }
    .progress-circle {
        margin-left: 0;
    }
    .input-group > :not(:first-child):not(.dropdown-menu):not(.form-floating) {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }
}