:root {
    --theme-color: #F2A08C;
    --theme-hover-bg: rgba(99, 102, 241, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f2f5 0%, #ffe9e3 100%);
    margin: 0;
    display: flex;
    justify-content: center;
    padding-top: 50px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 0.8s ease-in;
}

.main-container {
    width: 90%;
    max-width: 1000px;
    text-align: center;
}

.welcome-section {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.search-container {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 80%;
    max-width: 500px;
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 90%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#greeting {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
}

.clock-container {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--theme-color);
    transition: color 0.8s ease;
    font-family: 'Courier New', Courier, monospace;
}

#date-display {
    color: #888;
    font-size: 1rem;
    margin-top: 10px;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.widget-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 4px solid var(--theme-color);
}

.icon {
    font-size: 40px;
    margin-bottom: 15px;
}

h3 {
    margin: 10px 0;
    color: #333;
}

p {
    font-size: 0.9rem;
    color: #777;
}

.todo-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    margin: 20px auto;
    box-sizing: border-box;
}

.todo-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

#todoInput {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

#addBtn {
    background: var(--theme-color);
    transition: background 0.8s ease;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-widget {
    grid-column: 1 / -1;
    padding: 10px ; 
    cursor: default ;
    transform: none ; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.gallery-preview {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center 50%;
    border-radius: 12px;
    transition: 0.8s ease-in-out;
    border: 2px solid var(--theme-color);
}

.music-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg)
    }
}

.track-tittle {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.track-artist {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #777;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    width: 67%;
    height: 100%;
    background: var(--theme-color);
}

.platform-links {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.music-link {
    text-decoration: none;
    font-size: 0.8rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.music-link:hover {
    color: var(--theme-color);
}

ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

li {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    align-items: center;
    margin-bottom: 8px;
    border-radius: 8px;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

li.completed {
    text-decoration: line-through;
    color: #bbb;
}

li:hover {
    background: #f9f9f9;
    background-color: #f1f3f5;
}

.delete-btn {
    color: #ffb4b4;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    border-radius: 50%;
    border: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    transform: scale(1.2);
}

