:root {
    --high: #ff4d4d;
    --medium: #ffae42;
    --low: #2ecc71;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #eef2f3;
    padding: 20px;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: auto;
}

.input-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

input,
select,
button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

#searchInput {
    width: 70%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th {
    background: #007acc;
    color: white;
    text-align: left;
    padding: 12px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Priority Colors */
.p-High {
    border-left: 5px solid var(--high);
    color: var(--high);
    font-weight: bold;
}

.p-Medium {
    border-left: 5px solid var(--medium);
    color: var(--medium);
}

.p-Low {
    border-left: 5px solid var(--low);
    color: var(--low);
}

.countdown {
    font-family: monospace;
    font-weight: bold;
    color: #555;
}

.danger-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    cursor: pointer;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    min-width: 200px;
}

.toast.success { border-left: 5px solid #2ecc71; }
.toast.error { border-left: 5px solid #ff4d4d; }
.toast.info { border-left: 5px solid #007acc; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-out;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
}
body.dark-mode .container {
    background-color: #2d2d2d;
    color: white;
}

.pomodoro-box {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#timer-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 10px 0;
    font-family: 'Courier New', Courier, monospace;
    color: #ecf0f1;
}

.pomodoro-box button {
    background: #e67e22;
    margin: 5px;
    transition: transform 0.2s;
}

.pomodoro-box button:hover {
    transform: scale(1.05);
}

/* Toolbar Layout */
.toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.export-btn {
    background-color: #27ae60;
    color: white;
}

/* Dark Mode Variables */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .container {
    background-color: #1e1e1e;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

body.dark-mode table { color: white; }
body.dark-mode input, body.dark-mode select {
    background-color: #333;
    color: white;
    border: 1px solid #444;
}

.seo-footer {
    margin-top: 50px;
    padding: 40px 20px;
    background-color: #f9f9f9;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid #ddd;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-footer h2, .seo-footer h3 {
    color: #333;
    margin-top: 25px;
}

.seo-footer ul {
    padding-left: 20px;
}

.seo-footer .copyright {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Dark Mode Footer */
body.dark-mode .seo-footer {
    background-color: #1a1a1a;
    color: #bbb;
    border-top: 1px solid #333;
}
body.dark-mode .seo-footer h2, body.dark-mode .seo-footer h3 {
    color: #eee;
}