/* Percentage to GPA Converter Tool Styles */

.percentage-gpa-tool {
    margin: 2rem 0;
    margin-top: 3.5rem;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.gpa-converter-container {
    display: flex;
    flex-wrap: wrap;
    padding: 1.5rem;
    gap: 2rem;
}

.gpa-converter-form,
.gpa-result-container {
    flex: 1;
    min-width: 300px;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.gpa-converter-form h3,
.gpa-result-container h3,
.gpa-conversion-table h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4caf50;
    outline: none;
}

.calculate-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calculate-btn:hover {
    background-color: #45a049;
}

.gpa-result-display {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#gpa-result-value {
    font-size: 3rem;
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 0.5rem;
}

#gpa-scale-display {
    font-size: 1rem;
    color: #666;
}

.grade-letter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background-color: #f1f8e9;
    border-radius: 4px;
}

#letter-grade {
    margin-left: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.result-description {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

#result-message {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.gpa-conversion-table {
    padding: 1.5rem;
    margin-top: 1rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#gpa-reference-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#gpa-reference-table th {
    background-color: #4caf50;
    color: white;
    padding: 0.8rem;
    text-align: left;
}

#gpa-reference-table th.active-scale {
    background-color: #388e3c;
}

#gpa-reference-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
}

#gpa-reference-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#gpa-reference-table tr:hover {
    background-color: #f1f8e9;
}

/* Highlight row based on result */
tr.highlighted-row {
    background-color: #e8f5e9 !important;
    border-left: 3px solid #4caf50;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gpa-converter-container {
        flex-direction: column;
    }
    
    .gpa-converter-form,
    .gpa-result-container {
        width: 100%;
    }
    
    #gpa-result-value {
        font-size: 2.5rem;
    }
}

/* Tool Header Card - Consistent with other tools */
.tool-header-card {
    padding: 2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tool-icon-container {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tool-icon-container svg {
    width: 40px;
    height: 40px;
}

.tool-header-card h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tool-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* For mobile devices */
@media (max-width: 576px) {
    .tool-header-card {
        padding: 1.5rem;
    }
    
    .tool-header-card h1 {
        font-size: 1.5rem;
    }
    
    .tool-description {
        font-size: 1rem;
    }
    
    .tool-icon-container {
        width: 60px;
        height: 60px;
    }
    
    .tool-icon-container svg {
        width: 30px;
        height: 30px;
    }
}

/* Instructions Section Styles */
.percentage-gpa-instructions {
    padding: 30px 25px;
    background-color: #f7f9fc;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.percentage-gpa-instructions .instructions-title {
    color: #333;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.percentage-gpa-instructions .instructions-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4CAF50;
    margin: 12px auto 0;
}

.percentage-gpa-instructions .instructions-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.percentage-gpa-instructions .instructions-content > p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.percentage-gpa-instructions .steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.percentage-gpa-instructions .step {
    background-color: white;
    border-radius: 8px;
    padding: 20px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.percentage-gpa-instructions .step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.percentage-gpa-instructions .step h3 {
    color: #4CAF50;
    font-size: 17px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
}

.percentage-gpa-instructions .step h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4CAF50;
}

.percentage-gpa-instructions .step p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile Styles for Instructions */
@media (max-width: 768px) {
    .percentage-gpa-instructions {
        padding: 25px 15px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .percentage-gpa-instructions .instructions-title {
        font-size: 22px;
    }
    
    .percentage-gpa-instructions .steps-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .percentage-gpa-instructions .step {
        padding: 15px 12px;
    }
    
    .percentage-gpa-instructions .step h3 {
        font-size: 16px;
    }
    
    .percentage-gpa-instructions .step p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .percentage-gpa-instructions {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .percentage-gpa-instructions {
        padding: 20px 12px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 6px;
    }
    
    .percentage-gpa-instructions .instructions-title {
        font-size: 20px;
    }
    
    .percentage-gpa-instructions .instructions-content > p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .percentage-gpa-instructions .step {
        padding: 12px 10px;
    }
} 