:root {
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --bg-gradient-1: #4158D0;
    --bg-gradient-2: #C850C0;
    --bg-gradient-3: #FFCC70;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --primary-color: #6c5ce7;
    --danger-color: #ff7675;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3), #ff9a9e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    color: var(--text-primary);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

h1 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

/* Glassmorphism Card Style */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.25);
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.card h2 i {
    font-size: 1.5rem;
}

/* Widget Specific Styles */
.hero-text {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: auto 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#weather {
    font-size: 1.2rem;
    text-align: center;
    margin: auto 0;
    font-weight: 500;
}

.quote-text {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;
    margin: auto 0;
    color: var(--text-secondary);
}

/* Form Elements */
textarea, input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

textarea::placeholder, input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea:focus, input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

textarea {
    height: 120px;
    resize: vertical;
}

/* To-Do List Specifics */
.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-group button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    width: 48px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.input-group button:hover {
    background: #5f27cd;
}

ul#taskList {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for To-Do */
ul#taskList::-webkit-scrollbar {
    width: 6px;
}
ul#taskList::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

ul#taskList li {
    background: rgba(0, 0, 0, 0.15);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--primary-color);
    animation: fadeIn 0.3s ease;
}

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

ul#taskList li.completed {
    opacity: 0.6;
    text-decoration: line-through;
    border-left-color: #2ed573;
}

ul#taskList li span {
    flex-grow: 1;
    cursor: pointer;
}

.delete-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.delete-btn:hover {
    opacity: 1;
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}



#notesContainer textarea{
width:100%;
margin-top:10px;
padding:8px;
border-radius:6px;
resize:none;
}

#addNoteBtn{
margin-top:10px;
padding:6px 10px;
border:none;
background:#6c63ff;
color:white;
border-radius:6px;
cursor:pointer;
}