/* Do it, Nano Step! - Global Styles */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --main-font-color: #343a40;
    --primary-color: #4a90e2;
    --primary-color-dark: #357ABD;
    --white-color: #ffffff;
    --border-color: #e9ecef;
    --shadow-color-light: rgba(0, 0, 0, 0.03);
    --shadow-color-dark: rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', 'Segoe UI', 'Roboto', sans-serif;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #2ecc71;
}

body {
    font-family: var(--font-family);
    background: var(--background-gradient);
    color: var(--main-font-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 35px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px var(--shadow-color-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

.app-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: var(--main-font-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 26px;
    color: #6c757d;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header-icon-btn:hover {
    background-color: rgba(0,0,0,0.05);
    color: #000;
    transform: translateY(-2px);
}

.app-container {
    max-width: 750px;
    margin: 40px auto;
    padding: 20px;
}

#new-task-form {
    display: flex;
    margin-bottom: 30px;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color-dark);
    transition: box-shadow 0.3s ease;
}

#new-task-form:focus-within {
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

#new-task-input {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    font-family: var(--font-family);
}

#new-task-input:focus {
    outline: none;
}

#new-task-form button {
    padding: 0 25px;
    border: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#new-task-form button:hover {
    background-color: var(--primary-color-dark);
}

#task-list {
    list-style: none;
    padding: 0;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #adb5bd;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #000;
}

#trash-list-container {
    padding: 20px 30px;
    overflow-y: auto;
}

.trashed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: background-color 0.2s;
}

.trashed-item:hover {
    background-color: #f1f3f5;
}

.trashed-item-text {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 15px;
}

.trashed-item-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    margin-left: 12px;
    transition: transform 0.2s, color 0.2s;
    color: #868e96;
}

.trashed-item-buttons .restore-btn:hover {
    color: var(--success-color);
    transform: scale(1.2);
}

.trashed-item-buttons .perm-delete-btn:hover {
    color: var(--danger-color);
    transform: scale(1.2);
}
