*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    background:linear-gradient(135deg,#1e3c72,#2a5298);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container{
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 20px 40px rgba(0,0,0,0.2);
    text-align:center;
    width:450px;
}

h1{
    margin-bottom:25px;
    font-weight:600;
    color:#333;
}

#alarm{
    display:flex;
    gap:10px;
    justify-content:center;
}

#alarm input{
    padding:12px;
    font-size:16px;
    border:2px solid #ddd;
    border-radius:8px;
    outline:none;
    transition:0.3s;
}

#alarm input:focus{
    border-color:#1e3c72;
}

#alarm button{
    padding:12px 18px;
    font-size:16px;
    border:none;
    border-radius:8px;
    background:#1e3c72;
    color:white;
    cursor:pointer;
    transition:0.3s;
}

#alarm button:hover{
    background:#16325c;
    transform:translateY(-2px);
}

#clock{
    display:flex;
    flex-direction:column;
    align-items:center;
    margin-bottom:30px;
}

.time{
    font-size:56px;
    font-weight:bold;
    color:#1e3c72;
}

.ampm{
    font-size:18px;
    font-weight:600;
    color:#1e3c72;
    height:20px;
    margin-top:5px;
}

select {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    outline: none;
    cursor: pointer;
    background: white;
    transition: 0.3s ease;
    margin: 8px 6px;
}

select:hover,
select:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 8px rgba(30, 60, 114, 0.3);
}

option {
    font-size: 15px;
    color: #1e3c72;
    background-color: #f8f9ff;
}

#alarm-section {
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    width: 100%;
    margin-top: 20px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#alarm-section p {
    font-weight: 600;
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

#alarm-list {
    list-style: none;
    padding: 0;
    max-height: 200px; /* scrollable if too many alarms */
    overflow-y: auto;
}

#alarm-list li {
    background: #1e3c72;
    color: white;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}

#alarm-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

#alarm-list li button {
    background: #ff4d4d;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    color: white;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    padding: 0;
    transition: 0.2s;
}

#alarm-list li button:hover {
    background: #e60000;
}