@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'inter',sans-serif;
}

.pillMuted {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: auto;
  font-family: sans-serif;
  color: #64748b;
  background-color: #f1f5f9;
  border-radius: 9999px;
  line-height: 1;
}

body{
    background:#0f172a;
    color:#fff;
    display:grid;
    justify-content:center;
    padding:40px 20px;
    margin-top: 120px;
}

.container{
    width:100%;
    max-width:950px;
    background:#1e293b;
    border-radius:18px;
    padding:30px;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}

h1{
    font-size:32px;
    margin-bottom:6px;
}

.subtitle{
    color:#94a3b8;
    margin-bottom:28px;
}

.dashboard{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

.card{
    background:#273449;
    padding:22px;
    border-radius:16px;
}

.card h2{
    margin-bottom:18px;
    font-size:18px;
}

.card label{
    display:block;
    margin-bottom:8px;
    color:#bbc2cb;
    font-size:14px;
}

input,
select{
    width:100%;
    padding:12px;
    margin-bottom:16px;
    background:#1e293b;
    color:white;
    border:1px solid #475569;
    border-radius:10px;
    outline:none;
    transition:.2s;
}

input:focus,
select:focus{
    border-color:#3b82f6;
}

button{
    border:none;
    cursor:pointer;
    transition:.2s;
}

#add{
    width:100%;
    padding:13px;
    border-radius:10px;
    background:#2563eb;
    color:white;
    font-weight:600;
    font-size:15px;
}

#add:hover{
    background:#1d4ed8;
}

.clock{
    text-align:center;
    font-size:48px;
    font-weight:700;
    color:#38bdf8;
    margin:15px 0;
}

#btn{
    width:100%;
    padding:13px;
    border-radius:10px;
    background:#22c55e;
    color:white;
    font-weight:600;
}

#schedule{
    list-style:none;
    margin-top:20px;
}

/* ---------- Schedule Card ---------- */

.schedule-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#1e293b;
    border-left:5px solid #3b82f6;
    border-radius:12px;
    padding:16px 20px;
    margin-bottom:14px;
    transition:.2s;
}

.schedule-item:hover{
    background:#243247;
    transform:translateY(-2px);
}

.schedule-left{
    display:flex;
    align-items:center;
    gap:22px;
    flex:1;
    flex-wrap:wrap;
}

.schedule-time{
    font-size:22px;
    font-weight:700;
    color:#fff;
    min-width:80px;
}

.schedule-name{
    font-size:17px;
    font-weight:500;
    word-break:break-word;
}

.schedule-type{
    background:#5b21b6;
    color:white;
    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
}

/* ---------- Action Buttons ---------- */

.schedule-actions{
    display:flex;
    gap:10px;
    flex-shrink:0;
}

.schedule-actions button{
    width:40px;
    height:40px;
    border-radius:10px;
    font-size:18px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.edit{
    background:#bcc8f9;
    color:#111827;
}

.edit:hover{
    background:#eab308;
}

.delete{
    background:#aac7ec;
    color:white;
}

.delete:hover{
    background:#dc2626;
}

/* ---------- Scroll ---------- */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#475569;
    border-radius:999px;
}

/* =======================================================
                        TABLETS
======================================================= */

@media (max-width:900px){

    body{
        padding:20px;
    }

    .container{
        padding:24px;
    }

    .dashboard{
        grid-template-columns:1fr;
    }

    h1{
        font-size:28px;
    }

    .clock{
        font-size:42px;
    }

}

/* =======================================================
                        MOBILE
======================================================= */

@media (max-width:600px){

    body{
        padding:12px;
    }

    .container{
        padding:16px;
        border-radius:14px;
    }

    .card{
        padding:16px;
    }

    h1{
        font-size:24px;
    }

    .subtitle{
        font-size:14px;
        margin-bottom:20px;
    }

    .card h2{
        font-size:17px;
    }

    .clock{
        font-size:34px;
    }

    input,
    select,
    #add,
    #btn{
        font-size:14px;
        padding:11px;
    }

    .schedule-item{
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
        padding:14px;
    }

    .schedule-left{
        width:100%;
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .schedule-time{
        font-size:18px;
        min-width:auto;
    }

    .schedule-name{
        font-size:15px;
    }

    .schedule-type{
        font-size:12px;
        padding:5px 10px;
    }

    .schedule-actions{
        width:100%;
        justify-content:flex-end;
    }

    .schedule-actions button{
        width:36px;
        height:36px;
        font-size:16px;
    }

}

/* =======================================================
                    SMALL PHONES
======================================================= */

@media (max-width:400px){

    body{
        padding:8px;
    }

    .container{
        padding:12px;
    }

    h1{
        font-size:22px;
    }

    .subtitle{
        font-size:13px;
    }

    .card{
        padding:14px;
    }

    .schedule-item{
        padding:12px;
    }

    .schedule-time{
        font-size:16px;
    }

    .schedule-name{
        font-size:14px;
    }

    .schedule-type{
        font-size:11px;
    }

}