/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    background-color: #0b1f3a;
}

/* HEADER */
header {
    background-color: #ffd60a;
    color: #0b1f3a;
    padding: 20px;
    text-align: center;
    font-weight: bold;
}

/* ================= INDEX ================= */

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 60px;
}

.app-card {
    width: 320px;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.app-card h2 {
    margin-bottom: 8px;
}

.app-card p {
    font-size: 14px;
}

/* Card Colors */
.app1 {
    background: white;
    color: #0b1f3a;
}

.app2 {
    background: #ffd60a;
    color: #0b1f3a;
}

.app3 {
    background: #1b3a6b;
    color: white;
}

/* Hover */
.app-card:hover {
    transform: scale(1.05);
}

/* ================= APP PAGES ================= */

main {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* ================= REMOVE WHITE BACKGROUND ON INDEX ================= */

.home-page main {
    background: none;
    box-shadow: none;
    padding: 0;
}

/* ================= HOME BUTTON ================= */

button[onclick] {
    margin: 15px;
    display: inline-block;
    background: #ffd60a;
    color: #0b1f3a;
    border: 2px solid #0b1f3a;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

button[onclick]:hover {
    background: #0b1f3a;
    color: #ffd60a;
}

/* ================= FORM ================= */

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

/* INPUTS */
input,
select,
textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* FOCUS */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ffd60a;
    box-shadow: 0 0 5px rgba(255, 214, 10, 0.6);
}

/* ================= MAIN BUTTONS ================= */

button[type="submit"] {
    width: auto;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    background: #ffd60a;
    color: #0b1f3a;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

button[type="submit"]:hover:not(:disabled) {
    background: #0b1f3a;
    color: #ffd60a;
}

button:disabled {
    background: #aaa;
    color: #eee;
    cursor: not-allowed;
}

/* ================= TABLE ================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th {
    background: #0b1f3a;
    color: white;
    padding: 10px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* ================= ACTION BUTTONS ================= */

td button {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    margin-right: 5px;
    transition: 0.2s;
}

/* EDIT */
td button:first-child {
    background: #ffd60a;
    color: #0b1f3a;
}

/* DELETE */
td button:last-child {
    background: #0b1f3a;
    color: #ffd60a;
}

td button:hover {
    opacity: 0.85;
}

/* ================= APP2 ================= */

#total,
#avg {
    color: #ffd60a;
    font-weight: bold;
}

/* ================= APP3 ================= */

h3 {
    margin-top: 15px;
    color: #0b1f3a;
}

ul {
    list-style: none;
    margin-top: 10px;
}

li {
    background: #f4f4f4;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
}

/* ACTIVE / COMPLETED */
#incomplete li {
    background: #e8f0ff;
}

#complete li {
    background: #e6ffe6;
}