body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "JetBrains Mono", monospace;
    font-optical-sizing: auto;
    font-style: normal;
    background-image: url("bg.jpg");
    background-size: cover;
    background-position: center;
    background-color: rgba(42, 42, 42, 0.5); 
    background-blend-mode: multiply; 
    overflow-y: auto; 
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    padding: 40px 20px;
    box-sizing: border-box;
}

#clock h1 {
    margin: 0;
}

#time {
    font-size: 80px;
    font-weight: 200;
    color: rgb(234, 232, 232);
}

#date {
    font-size: 18px;
    font-weight: 300;
    color: rgba(234, 232, 232, 0.85);
    margin-top: 5px;
    margin-bottom: 25px;
}

#search {
    width: 100%;
    max-width: 584px; 
}

#search input {
    width: 100%;
    height: 46px; 
    padding: 0 24px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 300;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    outline: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

#search input::placeholder {
    color: rgba(235, 235, 235, 0.65);
    font-family: inherit;
    font-weight: 300;
}

#search input:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#search input:focus {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

#shortcuts {
    display: flex;
    gap: 20px;
    margin: 25px 0 35px 0;
}

.shortcut-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 75px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.shortcut-card i {
    font-size: 24px;
    margin-bottom: 6px;
}

.shortcut-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 900px) {
    #widgets-grid {
        grid-template-columns: 1fr;
    }
}

.widget {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.widget h2 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.widget-content {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    text-align: left;
}

#contest-list li {
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 4px 6px;
    border-radius: 6px;
}

#contest-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cal-day.contest-highlight {
    background-color: #3182ce !important;
    color: #ffffff !important;
    font-weight: bold;
    transform: scale(1.1);
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(49, 130, 206, 0.8);
}

#contest-list .contest-name {
    font-weight: 500;
    color: #fff;
    display: block;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#contest-list .contest-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 14px;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0 8px;
}

#calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    font-size: 11px;
    text-align: center;
}

.cal-day-head {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    padding-bottom: 4px;
}

.cal-day {
    padding: 5px 0;
    border-radius: 6px;
}

.cal-day.today {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.cal-day.empty {
    visibility: hidden;
}

#todo-form input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 12px;
    box-sizing: border-box;
    margin-bottom: 12px;
    outline: none;
}

#todo-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#todo-list li.completed span {
    text-decoration: line-through;
    opacity: 0.5;
}

#todo-list .delete-btn {
    background: none;
    border: none;
    color: rgba(255, 90, 90, 0.8);
    cursor: pointer;
    font-size: 12px;
}