/* ========== Global Styles ========== */
body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    background-image: url('./assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    margin: 0;
    transition: background 0.5s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.5s ease;
    z-index: -1;
}

body.dark-mode::before {
    background-color: rgba(14, 11, 11, 0.8);
}

/* ========== Layout Containers ========== */
.main-wrapper {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

/* ========== Header ========== */
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* ========== Input Section ========== */
.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.input-row input[type="text"] {
    flex: 1;
    min-width: 250px;
    max-width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* ========== Buttons ========== */
button {
    padding: 10px 15px;
    background: linear-gradient(135deg, #d87575, #ff5252);
    border: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(135deg, #ff5252, #e53935);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ========== Bulk Action Buttons ========== */
#bulkControls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ========== Task List ========== */
ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
}

li input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3);
}

li button {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
}

li button:hover {
    color: #a71d2a;
}

/* ========== Dark Mode Toggle ========== */
#darkModeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 8px 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

#darkModeToggle:hover {
    background: #555;
    transform: scale(1.1);
}

/* ========== Dark Mode Styles ========== */
body.dark-mode {
    color: #f1f1f1;
}

body.dark-mode .container {
    background: #1e1e1e;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode input[type="text"] {
    background: #2c2c2c;
    color: #fff;
    border: 1px solid #555;
}

body.dark-mode button {
    background: linear-gradient(135deg, #d46a4a, #a8492b);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    color: white;
}

body.dark-mode button:hover {
    background: linear-gradient(135deg, #c0453e, #73211f);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
}

body.dark-mode li {
    background: #2c2c2c;
}

body.dark-mode li button {
    color: #ff6b6b;
}

body.dark-mode h1 {
    color: white;
}

/* ========== Footer ========== */
.app-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #666;
}

.app-footer a {
    color: #4facfe;
    text-decoration: none;
    font-weight: bold;
}

body.dark-mode .app-footer {
    color: #aaa;
}

body.dark-mode .app-footer a {
    color: #90caf9;
}
