/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f6f9fc;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 900px;
  width: 100%;
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  color: #2c3e50;
  font-size: 36px;
  font-weight: bold;
}

header p {
  color: #7f8c8d;
  font-size: 18px;
  margin-top: 10px;
}

/* Form Styles */
.form-container {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #ecf0f1;
  border-radius: 10px;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #34495e;
}

input {
  width: 100%;
  padding: 12px;
  border: 2px solid #bdc3c7;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #3498db;
  outline: none;
}

button {
  padding: 14px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* Control Button Styles */
.buttons {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  margin-bottom: 25px;
}

.fcfs-btn {
  background-color: #2ecc71;
}

.sjf-btn {
  background-color: #e67e22;
}

.reset-btn {
  background-color: #e74c3c;
}

.fcfs-btn:hover {
  background-color: #27ae60;
}

.sjf-btn:hover {
  background-color: #d35400;
}

.reset-btn:hover {
  background-color: #c0392b;
}

/* Summary Section Styles */
.summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

.summary > div {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: #3498db;
  color: white;
}

thead th {
  padding: 12px;
  text-align: left;
  font-size: 15px;
}

tbody td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  background-color: #fff;
}

tbody tr:nth-child(odd) {
  background-color: #f2f3f4;
}

tbody tr:hover {
  background-color: #ecf0f1;
}

/* Gantt Chart Container */
.gantt-container {
  margin-top: 40px;
}

#ganttChart {
  display: flex;
  align-items: center;
  height: 50px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f4f4f4;
  overflow-x: auto;
}

.gantt-block {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: white;
  font-size: 14px;
  padding: 0 10px;
  margin-right: 1px;
}

.gantt-fcfs {
  background-color: #2ecc71;
}

.gantt-sjf {
  background-color: #e67e22;
}

.gantt-idle {
  background-color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  table {
    font-size: 14px;
  }
}

/* Comparison Section Styles */
#comparisonDiv {
  margin-top: 40px;
  padding: 20px;
  background-color: #ecf0f1;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}
#comparisonDiv h3 {
  margin-bottom: 20px;
}

