h1 {
	text-align: center;
}

.page,
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: garamond, serif;
}

.container {
    width: 80%;
    height: 80vh;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-sizing: border-box;
    font-family: garamond, serif;
}

.time {
    font-size: 60px;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
}

.greeting {
    font-size: 80px;
    font-family: garamond, serif;
    color: #ffffff;
    text-align: center;
    opacity: 0.9;
}

.search-bar {
    width: 100%;
    max-width: 500px;
    display: flex;
    border: 2px solid #ccc;
    border-radius: 60px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
    align-items: center;
    padding: 10px 20px;
    backdrop-filter: blur(10px), saturate(150%);
    max-height: 50px;
    font-family: garamond, serif;
}

.search-bar input[type="text"] {
    flex: 1;
    border: none;
    padding: 24px 20px;
    font-size: 20px;
    outline: none;
    background: transparent;
    color: #cac7ff;
}

::placeholder {
    color: #cac7ff;
}

.search-bar button img {
   width: 24px;
}

.search-bar button {
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    background: #58629b;
}

.btn{
    padding: 10px 20px;
    background: #ffffff;
    border: 0;
    outline: none;
    cursor: pointer;
    font-size: 10px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup {
    width: 500px;
    height: 400px;
    background: #0084ff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    border-radius: 6px;
    text-align: center;
    padding: 0 30px 30px ;
    color: #333;
    visibility: hidden;
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
    will-change: transform, opacity;
    pointer-events: none;
}

.btncancel{
    padding: 5px 15px;
    background: #ff6161;
    border: 0;
    outline: none;
    cursor: pointer;
    font-size: 10px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btnsubmit{
    padding: 5px 15px;
    background: #7cff72;
    border: 0;
    outline: none;
    cursor: pointer;
    font-size: 10px;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup img{
    width: 200px;
    margin-top: -50px;
    border-radius: 50%;
}

.submitinput{
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 30px;
    border: none;
    outline: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popup h2{
    margin: 30px 0 10px;
    font-size: 38px;
    font-weight: 500;
}

.open-popup{
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.close-popup{
    visibility: hidden;
}

.project-list {
    position: fixed;
    left: 20px;
    bottom: 20px;
    max-width: 320px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    font-size: 14px;
    line-height: 1.4;
}

.project-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-list li {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-list__info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.project-list__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.project-list__due {
    white-space: nowrap;
    flex-shrink: 0;
}

.project-list__actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.project-list li:hover .project-list__actions {
    opacity: 1;
    pointer-events: auto;
}

.project-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}

.project-btn--delete {
    border-color: rgba(255, 120, 120, 0.6);
    background: rgba(255, 120, 120, 0.2);
}

.project-btn--edit {
    border-color: rgba(120, 200, 255, 0.6);
    background: rgba(120, 200, 255, 0.2);
}

.project-list__empty {
    margin: 0;
    opacity: 0.8;
}