/* Page layout */
body {
    font-family: Arial, sans-serif;
    margin: 2rem auto;
    max-width: 900px;
    padding: 0 1rem;
    background-color: #f8f9fa;
    color: #333;
}

/* Mobile override */
@media (max-width: 768px) {
    body {
        margin: 0;
        max-width: none;
        padding: 0.75rem;
    }
}

/* Headings */
h1, h2, h3 {
    font-weight: 500;
    margin-bottom: 0.5em;
    color: #222;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

th, td {
    padding: 4px 8px;
    line-height: 1.2;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

th { background-color: #e9ecef; font-weight: bold; text-align: left; }
tr:nth-child(even) { background-color: #f7f7f7; }

/* Buttons */
button {
    padding: 8px 16px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}
button:hover { background-color: #005fcc; }

/* Form elements */
input, select, textarea {
    padding: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: auto;
    margin-top: 4px;
}

textarea { width: 100%; height: 200px; }

/* Modal base */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

/* Modal content */
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.4);
    font-family: sans-serif;
    border: 4px solid; /* Full border */
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 30% auto;
    }
}

.modal h3 {
    margin-top: 0;
}

/* Success modal */
.modal-content.success {
    border-color: #28a745;
}

/* Error modal */
.modal-content.error {
    border-color: #dc3545;
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover { color: #000; }

/* Optional: modal text */
.modal p {
    font-size: 1em;
    margin: 0.5em 0;
}

.task-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 6px solid #007bff;
}

.task-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.task-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.task-list li {
    margin-bottom: 0.5rem;
}

.task-list a {
    display: block;
    padding: 10px 14px;
    background: #f1f5ff;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.15s ease, transform 0.05s ease;
}

.task-list a:hover {
    background: #e0eaff;
    text-decoration: none;
    transform: translateX(2px);
}

.confirm-summary {
    text-align: left;
    font-size: 0.95em;
}


