*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#f4f6f9;
    margin:0;
    padding:0;
}

.container{
    max-width:1200px;
    margin:40px auto;
    padding:0 15px;
}

h1{
    text-align:center;
    margin-bottom:20px;
    color:#2c3e50;
}

.card{
    background:white;
    padding:20px;
    border-radius:12px;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

select,
input{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:8px;
    margin-bottom:10px;
}

button{
    padding:10px 18px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    background:#3498db;
    color:white;
    font-weight:bold;
    transition:.3s;
}

button:hover{
    background:#2980b9;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-top:10px;
}

table th{
    background:#3498db;
    color:white;
    padding:12px;
}

table td{
    border:1px solid #ddd;
    padding:10px;
    text-align:center;
}

.table-responsive{
    overflow-x:auto;
}

.deleteBtn{
    background:#e74c3c;
}

.deleteBtn:hover{
    background:#c0392b;
}

#calculateBtn{
    width:100%;
    font-size:18px;
    padding:14px;
}

#algoDescription{
    margin-top:10px;
    color:#555;
}

#quantumSection{
    display:none;
}

.averages{
    margin-top:20px;
}

.averages h3{
    margin-bottom:10px;
    color:#2c3e50;
}

/* Gantt Chart */

#ganttChart{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    margin-top:15px;
}

.gantt-block{
    min-width:70px;
    height:60px;
    border:2px solid #2c3e50;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#ecf0f1;
    font-weight:bold;
}

#ganttTime{
    display:flex;
    overflow-x:auto;
}

.time-mark{
    min-width:70px;
    text-align:left;
    font-size:14px;
    margin-top:5px;
}

/* Ready Queue */

#readyQueue{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}

.queue-box{
    background:#27ae60;
    color:white;
    padding:10px 15px;
    border-radius:8px;
    font-weight:bold;
}

/* Result Table */

#resultTable{
    margin-top:15px;
}

/* Mobile */

@media(max-width:768px){

    h1{
        font-size:24px;
    }

    table{
        font-size:14px;
    }

    button{
        width:100%;
        margin-top:10px;
    }

    .gantt-block{
        min-width:60px;
    }

    .time-mark{
        min-width:60px;
    }

}

#readyQueue{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:15px;
}

.queue-box{
    background:#27ae60;
    color:white;
    padding:10px 15px;
    border-radius:8px;
    font-weight:bold;
}

#resetBtn{
    width:100%;
    margin-top:10px;
    background:#e74c3c;
}

#resetBtn:hover{
    background:#c0392b;
}

.button-group{
    display:flex;
    gap:15px;
}

.button-group button{
    flex:1;
}

#calculateBtn{
    margin-top:0;
}

#resetBtn{
    margin-top:0;

        font-size:15px;

    font-weight:bold;
    background:#e74c3c;
}

#resetBtn:hover{
    background:#f30505;
}

.navbar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    background: rgb(3, 44, 248);

    padding:20px 20px;

    margin:0;

    border-radius:0;

    box-shadow:
    0 2px 10px
    rgba(0,0,0,.1);

}

.logo{

    font-size:28px;

    font-weight:bold;

    color:#f1f3f4;

}

.home-btn{

    text-decoration:none;

    background:#3498db;

    color:white;

    padding:10px 20px;

    border-radius:8px;

    font-weight:bold;

    transition:.3s;

}

.home-btn:hover{

    background:#1875b4;

}


#addProcessBtn{
    margin-top:15px;
}


#compareBtn{

    width:100%;

    margin-top:10px;
     padding:15px;

     font-size:15px;

    font-weight:bold;

    background:#27ae60;

}

#compareBtn:hover{

    background:#a0bf16;

}

#bestAlgorithm{

    margin-top:15px;

    text-align:center;

    color:#27ae60;

}


#selectedAlgorithmTitle{
    text-align:center;
    font-size:36px;
    font-weight:bold;
    margin:25px 0;
    color:#2c3e50;
}

#selectedAlgorithmTitle{
    text-align:center;
    font-size:48px;
    font-weight:700;
    color:#000000;
    margin:20px 0;
}


#pdfBtn{

    width:100%;

    margin-top:15px;

    background:#27ae60;

    color:white;

    padding:15px;

    border:none;

    border-radius:8px;

    font-size:18px;

    font-weight:bold;

}

#pdfBtn:hover{

    background:#732d91;

}



@media screen and (max-width:768px){

    .container{
        width:100%;
        padding:10px;
        margin:15px auto;
    }

    .card{
        padding:15px;
    }

    h1{
        font-size:32px;
    }

    h2{
        font-size:20px;
    }

    .logo{
        font-size:20px;
    }

    .home-btn{
        padding:8px 12px;
        font-size:12px;
    }

    .button-group{
        flex-direction:column;
    }

    .button-group button{
        width:100%;
    }

    table{
        font-size:12px;
    }

    th,td{
        padding:6px;
    }

    #selectedAlgorithmTitle{
        font-size:28px;
    }

}
