@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #38ef7d;
    --dark-bg: #0b1a14;
    --font-nunito: 'Nunito', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-nunito);
    color: white;
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(at 0% 0%, hsla(158, 82%, 33%, 0.35) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(120, 60%, 40%, 0.3) 0, transparent 50%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #999;
    font-size: 16px;
    margin-bottom: 30px;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.task-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.task-input:focus {
    border-color: #4db8a8;
}

.add-button {
    background-color: #20b2aa;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-button:hover {
    background-color: #1a9a92;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #20b2aa;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.submit-btn,
.cancel-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn {
    background-color: #20b2aa;
    color: white;
}

.submit-btn:hover {
    background-color: #1a9a92;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: #666;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    margin-right: 8px;
}

.category-Work {
    background-color: #3498db;
}

.category-Personal {
    background-color: #e74c3c;
}

.category-Shopping {
    background-color: #f39c12;
}

.category-Health {
    background-color: #27ae60;
}

.category-Education {
    background-color: #9b59b6;
}

.category-Other {
    background-color: #95a5a6;
}

/* Priority Badge */
.priority-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.priority-High {
    background-color: #e74c3c;
}

.priority-Medium {
    background-color: #f39c12;
}

.priority-Low {
    background-color: #27ae60;
}

.tasks-section {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-message {
    color: #bbb;
    text-align: center;
    font-size: 16px;
}

.task-list {
    list-style: none;
    width: 100%;
}

.task-item {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #20b2aa;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.task-text {
    color: #333;
    font-weight: 600;
    flex: 1;
}

.task-badges {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.task-details {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.task-description {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 5px;
}

.task-actions {
    display: flex;
    gap: 5px;
}

.delete-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #ee5a52;
}
