/* --- Root Variables for Theming ---h */ 
:root {
    --bg-gradient: linear-gradient(135deg, #e0e7ff 0%, #f4f7f9 100%);
    --bg-color: #f4f7f9;
    --card-bg-color: rgba(255,255,255,0.85);
    --text-color: #22223b;
    --primary-color: #4f8cff;
    --primary-hover-color: #2563eb;
    --logo-color: #007bff;
    --secondary-color: #6c757d;
    --border-color: #e0e0e0;
    --shadow-color: rgba(80, 112, 255, 0.08);
    --completed-color: #999;
    --navbar-glass: rgba(255,255,255,0.7);
    --navbar-border: rgba(79,140,255,0.15);
    --accent: #e94560;
    --priority-high: #dc3545;
    --priority-high-bg: #ffeaea;
    --priority-medium: #ffc107;
    --priority-medium-bg: #fff9e6;
    --priority-low: #28a745;
    --priority-low-bg: #e6fff2;
}

body.dark-theme {
    --bg-gradient: linear-gradient(135deg, #23243a 0%, #1a1a2e 100%);
    --logo-color: #ffffff;
    --bg-color: #1a1a2e;
    --card-bg-color: rgba(22,33,62,0.92);
    --text-color: #e0e0e0;
    --primary-color: #0f3460;
    --primary-hover-color: #e94560;
    --border-color: #2a3b5c;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --navbar-glass: rgba(22,33,62,0.85);
    --navbar-border: rgba(233,69,96,0.15);
    --accent: #e94560;
    --priority-high: #e94560;
    --priority-high-bg: rgba(233, 69, 96, 0.15);
    --priority-medium: #ffd700;
    --priority-medium-bg: rgba(255, 215, 0, 0.15);
    --priority-low: #3bd671;
    --priority-low-bg: rgba(59, 214, 113, 0.15);
}

/* --- General Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    transition: background 0.5s, color 0.3s;
}



.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto 2.5rem auto;
    padding: 1.2rem 2.5rem;
    border-radius: 18px;
    background: var(--navbar-glass);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    border: 1.5px solid var(--navbar-border);
    backdrop-filter: blur(12px);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--logo-color);
    text-shadow: 0 2px 8px rgba(79,140,255,0.10);
    user-select: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom 0.3s, background 0.3s, box-shadow 0.2s;
    font-size: 1.08rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(79,140,255,0.08);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

.nav-link.active {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--primary-hover-color) 100%);
    border-bottom: 2px solid var(--primary-hover-color);
    box-shadow: 0 4px 16px rgba(79,140,255,0.12);
    padding: 8px 22px;
    text-shadow: 0 2px 8px rgba(79,140,255,0.10);
}

.theme-btn {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--primary-hover-color) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(79,140,255,0.10);
    transition: background 0.3s, transform 0.1s, filter 0.1s;
}

.theme-btn:hover {
    background: linear-gradient(90deg, var(--primary-hover-color) 60%, var(--primary-color) 100%);
    filter: brightness(1.08);
}

.theme-btn:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}

/* --- Card Styles --- */
.card {
    background: var(--card-bg-color);
    border-radius: 20px;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    border: 1.5px solid var(--border-color);
    transition: background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover-color) 100%);
    opacity: 0.07;
    border-radius: 50%;
    z-index: 0;
}

.card > * {
    position: relative;
    z-index: 1;
}

/* --- Task Manager --- */
.task-manager h2, .weather-widget h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

.task-input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.task-search-area {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tags-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.tag-suggestions {
    flex: 1 1 300px;
    min-height: 34px;
}

.popular-tags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tag-badge {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tag-badge .tag-remove {
    margin-left: 0.4rem;
    background: rgba(0,0,0,0.12);
    padding: 0 0.25rem;
    border-radius: 6px;
    font-weight: 700;
}

.active-tag-filter {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.tag-suggestion-item {
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.03);
    margin-right: 0.4rem;
    display: inline-block;
    cursor: pointer;
}

.tag-suggestion-item:hover {
    background: rgba(79,140,255,0.12);
    color: var(--primary-color);
}

#task-tags {
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.75);
    min-width: 200px;
    outline: none;
}

#task-tags:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

.tag-editor {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.manage-tags-btn {
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: none;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
}

.manage-tags-btn#clear-tag-filter-btn {
    padding: 0.45rem 0.6rem;
}

#tag-filter-select {
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background: rgba(255,255,255,0.85);
    color: var(--text-color);
}

.manage-tags-btn:hover {
    background: rgba(79,140,255,0.06);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tag-manager {
    background: rgba(0,0,0,0.03);
    padding: 0.6rem;
    border-radius: 10px;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.tag-manager .tag-item {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
}

.tag-manager .tag-item input[type="text"] {
    border: none;
    background: transparent;
    color: inherit;
    width: auto;
    padding: 0 0.3rem;
}

.tag-manager .tag-action-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    padding: 0 0.25rem;
}

.tag-manager .tag-action-btn:hover {
    color: var(--primary-color);
}

#task-search {
    flex: 1 1 320px;
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.7);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

#task-search:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

.search-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-controls button {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--primary-hover-color) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
    transition: filter 0.15s, transform 0.08s;
}

.search-controls button:hover {
    filter: brightness(1.06);
}

.search-controls button:active {
    transform: scale(0.98);
}

.search-controls button#clear-search-btn {
    background: none;
    color: var(--secondary-color);
    border: 1.5px solid var(--border-color);
    box-shadow: none;
}

.search-controls button#clear-search-btn:hover {
    background: rgba(79,140,255,0.06);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

#search-count {
    margin-left: 0.25rem;
    color: var(--secondary-color);
    font-weight: 700;
    background: rgba(0,0,0,0.03);
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.task-desc {
    margin-left: 0.5rem;
    color: var(--secondary-color);
    font-style: italic;
    font-size: 0.95rem;
}

#task-input {
    flex: 1 1 200px;
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.7);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

#task-input:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

#due-date-input {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.7);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

#due-date-input:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

#priority-select {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    font-weight: 600;
    max-width: 180px;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

#priority-select:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

button,
#add-task-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--primary-hover-color) 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s, filter 0.1s;
    box-shadow: 0 2px 8px rgba(79,140,255,0.10);
}

button:hover,
#add-task-btn:hover {
    background: linear-gradient(90deg, var(--primary-hover-color) 60%, var(--primary-color) 100%);
    filter: brightness(1.08);
}

button:active,
#add-task-btn:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}

.task-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1.5px solid var(--border-color);
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 7px;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: none;
}

.filter-btn:hover {
    background: rgba(79,140,255,0.08);
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.filter-btn.active {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--primary-hover-color) 100%);
    color: #fff;
    border: 1.5px solid var(--primary-hover-color);
    box-shadow: 0 2px 8px rgba(79,140,255,0.10);
}

/* Priority Filter Buttons */
.filter-btn.priority-filter {
    font-size: 0.95rem;
}

.filter-btn.priority-filter[data-filter="priority-1"]:hover {
    background: var(--priority-high-bg);
    color: var(--priority-high);
    border-color: var(--priority-high);
}

.filter-btn.priority-filter[data-filter="priority-2"]:hover {
    background: var(--priority-medium-bg);
    color: #856404;
    border-color: var(--priority-medium);
}

.filter-btn.priority-filter[data-filter="priority-3"]:hover {
    background: var(--priority-low-bg);
    color: var(--priority-low);
    border-color: var(--priority-low);
}

.filter-btn.priority-filter[data-filter="priority-1"].active {
    background: var(--priority-high);
    border-color: var(--priority-high);
}

.filter-btn.priority-filter[data-filter="priority-2"].active {
    background: var(--priority-medium);
    color: #333;
    border-color: var(--priority-medium);
}

.filter-btn.priority-filter[data-filter="priority-3"].active {
    background: var(--priority-low);
    border-color: var(--priority-low);
}

#task-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

#task-list .task-empty-state {
    padding: 1rem 0.5rem;
    text-align: center;
    color: var(--secondary-color);
    font-style: italic;
    border-bottom: 1px solid var(--border-color);
}

#task-list li {
    margin: 10px 0;
}

.task-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.5fr;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s, transform 0.3s;
}

.task-item:hover {
    background: rgba(79,140,255,0.03);
}

.task-item:last-child {
    border-bottom: none;
}

.task-item input[type="checkbox"] {
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--primary-color);
    width: 1.1rem;
    height: 1.1rem;
}

.task-item span.completed {
    text-decoration: line-through;
    color: var(--completed-color);
}

/* Priority Badge Styles */
.priority-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.priority-high {
    background: var(--priority-high);
    color: white;
}

.priority-medium {
    background: var(--priority-medium);
    color: #333;
}

.priority-low {
    background: var(--priority-low);
    color: white;
}

/* Priority Dropdown in Task Item */
.priority-dropdown {
    padding: 0.5rem 0.7rem;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    font-weight: 600;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}

.priority-dropdown:hover {
    border-color: var(--primary-color);
}

.priority-dropdown:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

.delete-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.delete-btn:hover {
    background: rgba(233,69,96,0.08);
    color: #fff;
}

.task-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.task-actions button {
    flex: 1;
    min-width: 120px;
    padding: 0.7rem 1.5rem;
}

#clear-all-btn {
    display: block;
    margin: 0;
    background: linear-gradient(90deg, #dc3545 60%, #e94560 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2.2rem;
    box-shadow: 0 2px 8px rgba(233,69,96,0.10);
    transition: background 0.3s, transform 0.1s, filter 0.1s;
}

#clear-all-btn:hover {
    background: linear-gradient(90deg, #e94560 60%, #dc3545 100%);
    filter: brightness(1.08);
}

#clear-all-btn:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}

/* --- Progress Bar --- */
.task-progress-container {
    margin: 1.5rem 0 1.2rem 0;
    text-align: center;
}

.task-progress-bar-bg {
    width: 100%;
    height: 18px;
    background: linear-gradient(90deg, #e0e7ff 0%, #f4f7f9 100%);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

.task-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f8cff 0%, #28a745 100%);
    border-radius: 10px;
    transition: width 0.7s cubic-bezier(.4,2,.3,1), background 0.3s;
}

.task-progress-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 0.5rem;
}

.task-progress-percent {
    font-size: 2.2rem;
    font-weight: 700;
    color: #4f8cff;
    letter-spacing: 1px;
    min-width: 70px;
    text-shadow: 0 2px 8px rgba(79,140,255,0.10);
}

.task-progress-summary {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.task-progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
    display: inline-block;
}

.task-progress-ring-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: #4f8cff;
    pointer-events: none;
}

#task-progress-ring {
    transition: stroke-dasharray 0.7s cubic-bezier(.4,2,.3,1), stroke 0.3s;
}

/* --- Weather Widget --- */
.weather-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

#city-input {
    flex: 1 1 180px;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.7);
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    margin-bottom: 0.5rem;
}

#city-input:focus {
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(79,140,255,0.08);
}

#weather-info {
    text-align: center;
}

#weather-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

#weather-info .weather-icon {
    width: 110px;
    height: 110px;
    margin: 1.2rem auto;
    display: block;
    filter: drop-shadow(0 2px 12px rgba(79,140,255,0.18));
    transition: width 0.2s, height 0.2s;
}

#weather-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.error-text {
    color: #dc3545;
    font-weight: 500;
}

.loading-text {
    color: var(--secondary-color);
    font-weight: 500;
}

.retry-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--primary-hover-color) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.retry-btn:hover {
    filter: brightness(1.06);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-top: 2rem;
    opacity: 0.85;
}

footer .footer-nav {
    margin-top: 1rem;
}

footer .footer-nav a {
    color: var(--text-color);
    margin: 0 10px;
    text-decoration: none;
}

footer .footer-nav a:hover {
    text-decoration: underline;
}



/* about.html's css as it was inline and */

        .about-section {
            margin-bottom: 2rem;
        }
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            text-align: center;
        }
        .team-member img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1rem;
            border: 3px solid var(--primary-color);
        }
        .team-member h3 {
            margin-bottom: 0.25rem;
        }
        .timeline {
            list-style: none;
            padding: 0;
            position: relative;
        }
        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            left: 20px;
            height: 100%;
            width: 4px;
            background: var(--border-color);
        }
        .timeline li {
            margin-bottom: 2rem;
            padding-left: 40px;
            position: relative;
        }
        .timeline li::before {
            content: '';
            position: absolute;
            left: 12px;
            top: 5px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary-color);
            border: 3px solid var(--background-color);
        }
        .timeline-content h3 {
            margin-top: 0;
            color: var(--primary-color);
        }
        footer .footer-nav {
            margin-bottom: 1rem;
        }
        footer .footer-nav a {
            color: var(--text-color);
            margin: 0 10px;
            text-decoration: none;
        }
        footer .footer-nav a:hover {
            text-decoration: underline;
        }
