
body{
    background-color: #f3f4f6;
  
  }
  .container-cal {
    max-width: 850px;
    margin: 5px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

input[type="number"],
select,
input[type="text"] {
    width: calc(40% - 5px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

input[type="button"] {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
input[type="button"]:hover {
    background-color: #218838;
}

.result {
    margin-top: 15px;
}

h1, h2, h3 {
    color: #0D4B8E;
}

.spi-inputs div,
.spi-semester-inputs div {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.title-cal {
    margin-bottom: 15px;
}

.horizontal {
    display: flex;
    align-items: center;
}

.horizontal>* {
    flex: 1;
    margin-right: 10px;
}

.chart-container1,
.chart-container2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: auto;
    max-height: 300px;
    margin: 0 auto;
}

canvas {
    width: 100% !important;
    height: auto !important;
}
.toggle-container {
    position: sticky;
   margin-top: 70px;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content:center;
    gap: 20px;
}

.toggle-container button {
    padding: 12px 30px;
    font-size: 18px;
    cursor: pointer;
    border: 2px solid #154272;
    background-color: #fff;
    color: #154272;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.toggle-container button:hover {
    background-color: #154272;
    color: #fff;
    transform: scale(1.05);
}

.toggle-container button.active {
    background-color: #154272;
    color: #fff;
    border-color: #154272;
    transform: scale(1.1);
}

.toggle-container button:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}
.info{
    line-height: 1.6;
    max-width: 850px;
    margin: 5px auto;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}
/* Table Styling */
.spi-cpi-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.spi-cpi-table th, .spi-cpi-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.spi-cpi-table th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

.spi-cpi-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.spi-cpi-table tr:hover {
    background-color: #f1f1f1;
}
