* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    padding-bottom: 30px;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 30px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 40px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
    font-family: 'Caveat', cursive, 'Comic Sans MS', 'Comic Sans', cursive;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 i {
    margin-right: 10px;
    color: #3498db;
}

h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #34495e;
    font-size: 20px;
    font-weight: 600;
}

h2 i, h3 i {
    margin-right: 8px;
    color: #3498db;
}

h3 {
    margin-top: 12px;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 18px;
    font-weight: 500;
}

.calculator-section {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    width: 100%;
    overflow: hidden;
}

.assessment-form {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f1fdf8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 1000px;
    border-left: 5px solid #2ecc71;
}

.assessment-form.collapsed {
    max-height: 50px;
    padding: 12px 15px;
    overflow: hidden;
    margin-bottom: 15px;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.assessment-form.collapsed .form-group,
.assessment-form.collapsed h3,
.assessment-form.collapsed .btn {
    display: none;
}

.assessment-form.collapsed .step-label {
    margin: 0;
    padding: 0;
    height: auto;
    overflow: visible;
    width: 100%;
    text-align: left;
    background-color: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.final-exam-form {
    margin-bottom: 25px;
    padding: 22px;
    background-color: #f1f7fd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #3498db;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

label {
    width: 140px;
    font-weight: 500;
    margin-right: 15px;
    color: #445566;
}

.input-field {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex: 1;
    min-width: 150px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.input-field:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transition: all 0.2s ease;
}

.custom-input {
    margin-top: 10px;
    width: 100%;
}

.hidden {
    display: none;
}

.btn {
    margin-top: 15px;
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.results-section {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    overflow: hidden;
}

.assessment-form.collapsed + .weight-warning + .results-section {
    transform: translateY(-15px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.assessments-list {
    margin: 20px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Ensure table cell content wraps properly */
td {
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Table layout and spacing */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #445566;
    text-align: center;
}

.actions-header {
    text-align: center !important;
}

th:first-child {
    text-align: left;
}

/* Column width distributions */
th:nth-child(1), td:nth-child(1) {
    width: 35%;
    text-align: left;
}

th:nth-child(2), td:nth-child(2),
th:nth-child(3), td:nth-child(3),
th:nth-child(4), td:nth-child(4) {
    width: 15%;
    text-align: center;
}

th:nth-child(5), td:nth-child(5) {
    width: 20%;
    text-align: center;
    padding: 5px;
}

tr:hover {
    background-color: #f8fafc;
}

.percent-cell {
    position: relative;
    text-align: center;
}

.percent-cell::after {
    content: "%";
    display: inline-block;
    margin-left: 1px;
    color: #445566;
}

.grade-display {
    margin: 20px;
    padding: 22px;
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-name-display {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
    font-weight: 600;
    font-size: 22px;
}

.assessment-form.collapsed ~ .results-section .grade-display {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stats-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stats-info .info-item {
    flex: 1 1 calc(25% - 10px);
    min-width: 140px;
    text-align: center;
    padding: 8px;
}

.stats-info .info-item:nth-child(2),
.stats-info .info-item:nth-child(3),
.stats-info .info-item:nth-child(4) {
    position: relative;
}

.stats-info .info-item:nth-child(2)::before,
.stats-info .info-item:nth-child(3)::before,
.stats-info .info-item:nth-child(4)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 3px;
    background-color: #3498db;
    opacity: 0.3;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-item label {
    width: auto;
    margin-right: 0;
    margin-bottom: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

.info-item span {
    font-size: 24px;
    font-weight: 600;
    color: #34495e;
    position: relative;
    display: inline-block;
}

.info-item span::after {
    content: "%";
    display: inline-block;
    font-size: 22px;
    margin-left: 2px;
}

.needed-grade {
    margin-top: 20px;
    padding: 15px;
    background-color: #eaf2f8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.needed-grade h3 {
    color: #2980b9;
    margin-bottom: 10px;
    font-size: 20px;
}

.grade-result {
    font-size: 18px;
    margin-bottom: 10px;
}

#neededGrade {
    font-weight: bold;
    font-size: 36px;
    color: #2980b9;
    display: inline-block;
    margin: 0 5px;
    position: relative;
}

#neededGrade::after {
    content: "%";
    display: inline-block;
    font-size: 28px;
    margin-left: 2px;
}

.weight-warning {
    display: none;
    padding: 15px 18px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    margin: 15px 20px 20px;
    color: #856404;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    line-height: 1.5;
    font-size: 15px;
    position: relative;
    z-index: 10;
}

.weight-warning i {
    margin-right: 8px;
    color: #ffc107;
}

.weight-warning strong {
    font-weight: 600;
    color: #e67e22;
}

.best-grade {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f4fc;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.best-grade p {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
}

.best-grade i {
    color: #f39c12;
    margin-right: 8px;
}

#maxPossibleGrade {
    font-weight: bold;
    color: #2980b9;
    font-size: 20px;
    display: inline-block;
    position: relative;
}

#maxPossibleGrade::after {
    content: "%";
    display: inline-block;
    font-size: 18px;
    margin-left: 2px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.reset-btn, .github-button {
    padding: 12px 22px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

.github-button {
    background-color: #333;
}

.reset-btn:hover, .github-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.github-button:hover {
    background-color: #000;
}

.reset-btn i, .github-button i {
    margin-right: 8px;
}

/* Calculator-like styling for forms */
select, input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Only style the placeholder in the dropdown */
select option[value=""] {
    color: #999;
}

/* Style the select element only when showing placeholder */
select {
    color: #333;
}

select.placeholder-visible {
    color: #888;
}

/* Remove the invalid/valid styling that affects all options */
select:invalid, select:valid {
    color: inherit;
}

.required {
    color: #f39c12;
    font-weight: bold;
    margin-left: 2px;
}

input:required {
    border-left: 3px solid #f39c12;
}

.step-label {
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-label i {
    margin-right: 8px;
    font-size: 18px;
}

.final-exam-form .step-label {
    background-color: #e6f3fe;
    color: #2980b9;
}

.final-exam-form .step-label i {
    color: #3498db;
}

.assessment-form .step-label {
    background-color: #e8f8f0;
    color: #27ae60;
}

.assessment-form .step-label i {
    color: #2ecc71;
}

.submit-btn {
    margin-top: 15px;
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.submit-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn.edit-mode {
    background-color: #f39c12;
}

.submit-btn.edit-mode:hover {
    background-color: #e67e22;
}

.submit-btn i {
    margin-right: 8px;
}

.final-exam-form.submitted .input-field {
    background-color: #f5f5f5;
    border-color: #ddd;
    border-left: 3px solid #f39c12;
    cursor: not-allowed;
}

.assessment-form .input-field {
    border-left: 3px solid #f39c12;
}

.assessment-form select.input-field {
    border-left: 3px solid #f39c12;
}

/* Add focus styles separately for both steps */
.input-field:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transition: all 0.2s ease;
}

.assessment-form .input-field:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

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

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

.assessment-form .btn.another {
    background-color: #f39c12;
}

.assessment-form .btn.another:hover {
    background-color: #e67e22;
}

.title-icon {
    width: 38px;
    height: 38px;
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
}

.result-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

.needed-grade h3.scratchy-heading {
    font-family: 'Caveat', cursive, 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: 24px;
    letter-spacing: 1px;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Override the default h3 styling in needed-grade */
.needed-grade h3 {
    color: #2980b9;
    margin-bottom: 10px;
    font-size: 20px;
}

/* Responsive design - improved with multiple breakpoints */
@media (max-width: 768px) {
    .container {
        margin: 15px 10px;
        padding: 15px;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 30px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .input-field {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .stats-info {
        flex-direction: column;
        padding: 15px;
    }
    
    .stats-info .info-item {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .stats-info .info-item:nth-child(2)::before,
    .stats-info .info-item:nth-child(3)::before,
    .stats-info .info-item:nth-child(4)::before {
        display: none;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 5px;
        word-break: break-word;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
    
    /* Mobile column widths */
    th:nth-child(1), td:nth-child(1) {
        width: 30%;
    }
    
    th:nth-child(2), td:nth-child(2), 
    th:nth-child(3), td:nth-child(3),
    th:nth-child(4), td:nth-child(4) {
        width: 16%;
    }
    
    th:nth-child(5), td:nth-child(5) {
        width: 22%;
    }
    
    /* Mobile actions styling */
    .actions-cell {
        flex-direction: column;
        gap: 6px;
    }
    
    .edit-btn, .delete-btn {
        width: 36px;
        height: 36px;
    }
    
    .edit-btn i, .delete-btn i {
        font-size: 16px;
    }
    
    .btn {
        font-size: 14px;
    }
    
    #neededGrade {
        font-size: 28px;
    }
    
    .assessment-form, .final-exam-form, .assessments-list, .grade-display {
        padding: 15px;
    }
    
    .calculator-section, .results-section {
        padding: 3px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .reset-btn, .github-button {
        margin: 5px 0;
        width: 100%;
        max-width: 280px;
    }
    
    .title-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Hide button text on mobile, show only icons */
    .btn-text {
        display: none;
    }
    
    .edit-btn i, .delete-btn i {
        margin-right: 0;
        font-size: 14px;
    }
    
    .assessments-list {
        margin: 10px;
        overflow: hidden;
    }
    
    /* Ensure full width container on mobile */
    .container, .calculator-section, .results-section {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        margin: 10px 5px;
        padding: 12px;
    }
    
    h1 {
        font-size: 26px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .title-icon {
        width: 22px;
        height: 22px;
        margin-right: 6px;
    }
    
    .result-icon {
        width: 18px;
        height: 18px;
        margin-right: 4px;
    }
    
    .step-label {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    /* Improve table layout on very small screens */
    table {
        table-layout: fixed;
        font-size: 12px;
    }
    
    th, td {
        padding: 8px 3px;
    }
    
    /* Adjust table header text for small screens */
    th:nth-child(1) {
        font-size: 12px;
    }
    
    th:nth-child(2), th:nth-child(3), th:nth-child(4) {
        font-size: 11px;
    }
    
    /* Better responsive column sizes */
    th:nth-child(1), td:nth-child(1) {
        width: 28%;
    }
    
    th:nth-child(2), td:nth-child(2), 
    th:nth-child(3), td:nth-child(3),
    th:nth-child(4), td:nth-child(4) {
        width: 17%;
    }
    
    th:nth-child(5), td:nth-child(5) {
        width: 21%;
        min-width: auto;
    }
    
    .actions-cell {
        padding: 4px 0;
    }
    
    /* Make buttons more compact */
    .edit-btn, .delete-btn {
        width: 32px;
        height: 32px;
    }
    
    .edit-btn i, .delete-btn i {
        font-size: 14px;
    }
    
    th:nth-child(5), td:nth-child(5) {
        width: 18%;
        min-width: 45px;
    }
    
    /* Other mobile styles */
    #neededGrade {
        font-size: 24px;
    }
    
    #neededGrade::after {
        font-size: 20px;
    }
    
    .grade-result {
        font-size: 16px;
    }
    
    .needed-grade h3.scratchy-heading {
        font-size: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .reset-btn, .github-button {
        width: 100%;
    }
    
    .assessments-list {
        margin: 5px;
        border-radius: 8px;
    }
    
    /* Specific styling for the Weighted column on mobile */
    th:nth-child(4) {
        white-space: nowrap;
        font-size: 11px;
    }
    
    /* Other table header adjustments */
    th {
        padding: 10px 3px;
    }
    
    /* Restore full column titles but make them small */
    th[data-full="Assessment"]::before,
    th[data-full="Weight"]::before,
    th[data-full="Grade"]::before,
    th[data-full="W.G."]::before,
    th[data-full="Actions"]::before {
        content: none;
    }
    
    th[data-full="Assessment"] span, 
    th[data-full="Weight"] span, 
    th[data-full="Grade"] span, 
    th[data-full="W.G."] span,
    th[data-full="Actions"] span {
        display: inline;
    }
    
    th {
        padding: 8px 2px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    /* Column-specific styling */
    th:nth-child(1) {
        font-size: 10px;
    }
    
    th:nth-child(2), th:nth-child(3), th:nth-child(4) {
        font-size: 10px;
    }
    
    /* Button styling */
    .edit-btn i, .delete-btn i {
        font-size: 14px;
    }
    
    .edit-btn, .delete-btn {
        padding: 5px 0;
    }
}

/* Very small screens - specialized adjustments */
@media (max-width: 350px) {
    th, td {
        padding: 6px 2px;
        font-size: 10px;
    }
    
    .actions-header {
        font-size: 10px;
    }
    
    th:nth-child(1) {
        font-size: 11px;
    }
    
    th:nth-child(2), th:nth-child(3), th:nth-child(4) {
        font-size: 9px;
    }
    
    th:nth-child(4) {
        font-size: 10px;
        padding: 6px 1px;
    }
    
    th:nth-child(5), td:nth-child(5) {
        min-width: 65px;
    }
    
    th[data-full="Assessment"] span, 
    th[data-full="Weight"] span, 
    th[data-full="Grade"] span, 
    th[data-full="W.G."] span,
    th[data-full="Actions"] span {
        font-size: 9px;
    }
    
    th {
        padding: 6px 1px;
    }
    
    .actions-cell {
        gap: 4px;
    }
    
    .edit-btn, .delete-btn {
        width: 28px;
        height: 28px;
    }
    
    .edit-btn i, .delete-btn i {
        font-size: 12px;
    }
}

/* For larger tablets and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .stats-info .info-item {
        min-width: 120px;
    }
}

.footer {
    text-align: center;
    padding: 10px 0;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

.footer p {
    margin: 0;
}

.submit-btn, .btn, .reset-btn, .github-button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Actions styling */
.actions-column {
    padding: 0;
    text-align: center;
}

.actions-cell {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin: 0 auto;
}

/* Action buttons */
.edit-btn, .delete-btn {
    width: 40px;
    height: 40px;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn i, .delete-btn i {
    font-size: 18px;
}

.edit-btn {
    background-color: #3498db;
}

.edit-btn:hover {
    background-color: #2980b9;
}

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

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

/* Mobile adjustments */
@media (max-width: 768px) {
    /* Mobile actions styling */
    .actions-cell {
        flex-direction: column;
        gap: 6px;
    }
    
    .edit-btn, .delete-btn {
        width: 36px;
        height: 36px;
    }
    
    .edit-btn i, .delete-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .edit-btn, .delete-btn {
        width: 32px;
        height: 32px;
    }
    
    .edit-btn i, .delete-btn i {
        font-size: 14px;
    }
}

@media (max-width: 350px) {
    .actions-cell {
        gap: 4px;
    }
    
    .edit-btn, .delete-btn {
        width: 28px;
        height: 28px;
    }
    
    .edit-btn i, .delete-btn i {
        font-size: 12px;
    }
}

/* Navigation links */
.nav-links {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-link i {
    margin-right: 8px;
    color: #3498db;
}

.nav-link:hover {
    background-color: #e6f3fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background-color: #3498db;
    color: white;
}

.nav-link.active i {
    color: white;
}

/* Letter grade styling */
.letter-grade {
    font-size: 24px;
    margin: 15px 0;
    font-weight: 600;
    color: #2c3e50;
}

#letterGrade {
    font-size: 32px;
    font-weight: 700;
    color: #2980b9;
}

#gradePoint {
    font-size: 24px;
    color: #7f8c8d;
}

/* Custom input group */
.custom-input-group {
    transition: all 0.3s ease;
}

.custom-input-group.hidden {
    display: none;
}

/* Responsive adjustments for nav links */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Disabled button state */
.btn.disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.btn.disabled:hover {
    background-color: #95a5a6;
    transform: none;
    box-shadow: none;
} 