html {
    background-color: #EBEDEC;
    font-family: 'Inter', sans-serif;
    color: #1D1D1D;
    scroll-behavior: smooth;
}
    

body {
    margin: 0;
    padding: 0;
    height: 120vh;
}

.sec-header-bar {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
    width: 100%;
    margin-bottom: 30px;
    padding-right: 0;
}
.container {
    margin: 50px auto;
    max-width: 400px;
    padding: 30px;
    margin-top: 15vh;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}
.content{
    display: flex;
    flex-direction:row;
    justify-content: space-around; 
}

.progress {
    border-radius: 50px;
    height: 10px;
    transform: scaleX(-1)
}
.progress::-webkit-progress-bar {
    background: linear-gradient(to right, rgb(40, 195, 40), rgb(0, 110, 4));
    border-radius: 50px;
}
.progress::-webkit-progress-value {
    background-color: rgb(255, 255, 255); 
    border-radius: 50px;
}
h2 {
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.i-sec {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

h1 {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
}

input {
    padding: 12px;
    border: none;
    width: 120px;
    border-radius: 10px;
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background-color: #ffffff;
    outline: none;
}
.result-sec {
    height: auto;
    padding: 20px;
    background-color: #1D1D1D;
    color: white;
    border-radius: 15px;
    text-align: center;
}

#total-time {
    font-size: 32px;
    font-weight: 800;
}

.header-bar {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    padding-right: 0;
}

.header-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
}

.header-bar .icon-btn {
    flex-shrink: 0;
}

.icon-btn {
    border: 1px solid #ddd;
    border-radius: 50%;
    background: transparent;
    color: #1d1d1d;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    width: 35px;
    padding-top: 3px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    scale: 1.2;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.icon-btn i {
    scale: 1.2;
}

.icon-btn:hover {
    background: #f0f0f0;
    scale: 1.3;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal-dialog h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-hint {
    margin: 0 0 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.modal-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

.weekday-checkboxes {
    display: grid;
    grid-template-columns: repeat(4, minmax(60px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.weekday-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #333;
}

.modal-dialog input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 10px 16px;
    cursor: pointer;
}

.modal-btn.secondary {
    background: #eee;
    color: #333;
}

.modal-btn.primary {
    background: #1d1d1d;
    color: #fff;
}

.sec{
    display: flex;
    flex-direction: row;
}
.sec1{
    display: flex;
    flex-direction: row;
}

#isOvertime{
    font-size: 14px;
    font-weight: 100;
    color: #bdbdbd;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: #888;
}

img {
    width: 30px;
    height: 30px;
}
.table{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid #eee;
    margin: 10px 0;
    font-size: 1.1rem;
}

.btn{
    border: none;
    background-color: black;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}.btn:hover{
    scale: 0.9;
}

.save-btn {
    margin-top: 30px;
    border: none;
    border-radius: 10px;
    background-color: #1d1d1d;
    color: #fff;
    font-weight: 600;
    padding: 12px 14px;
    cursor: pointer;
}

.all-time{
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 100;
    color: #888;
    font-size: 14px;
    margin-top: 10px;
}

@media (max-width: 500px) {
    .content {
        display: flex;
        flex-direction: column;}

    .container {margin: 0;}
    .i-sec {width: 75vw;}
    input{width: 70vw;}
    footer {display: none;}
    .result-sec {width: 100vw;}
}

.fo-he {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: #ebedec80;    
    backdrop-filter: blur(20px);
    border-top: 1px solid #CDCDCD;
    height: 78px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}
.fo-he a {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 80px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fo-he i {
    font-size: 25px;
    color: #888;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fo-he a:hover i {
    color: black;
}

.fo-he h3 {
    font-size: 15px;
    margin: 0;
    font-weight: 400;
    color: #888;
}

.fo-he a:hover h3 {
    color: black;
}
.fo-he a button {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
