/* Prefix all classes with 'gpa-calc-' to avoid conflicts */
.gpa-calc-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
}

.gpa-calc-container {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 0 auto;
    max-width: 600px;
    transition: transform 0.3s ease;
}

.gpa-calc-container:hover {
    transform: translateY(-5px);
}

.gpa-calc-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gpa-calc-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.gpa-calc-input-group {
    margin-bottom: 30px;
    position: relative;
}

.gpa-calc-label {
    display: block;
    margin-bottom: 12px;
    color: #34495e;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gpa-calc-input {
    width: 100% !important;
    padding: 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 1.1em !important;
    transition: all 0.3s ease !important;
    background-color: #f8f9fa !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    text-align: right !important;
}

.gpa-calc-input:focus {
    outline: none !important;
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2) !important;
}

.gpa-calc-button {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gpa-calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.gpa-calc-button:active {
    transform: translateY(0);
}

.gpa-calc-result {
    margin-top: 30px;
    background: white;
    border-radius: 15px;
    text-align: right;
    display: none;
    animation: gpaCalcSlideIn 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e8ed;
    overflow: hidden;
}

@keyframes gpaCalcSlideIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.gpa-calc-result-header {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 20px;
    position: relative;
}

.gpa-calc-result-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gpa-calc-result-content {
    padding: 25px;
}

.gpa-calc-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gpa-calc-item {
    flex: 1;
    padding: 15px;
    text-align: center;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gpa-calc-item:first-child {
    border-left: 1px solid #e1e8ed;
}

.gpa-calc-label-text {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpa-calc-value {
    color: #2d3748;
    font-size: 2em;
    font-weight: 700;
    margin: 10px 0;
}

.gpa-calc-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #ebf8ff;
    color: #3498db;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.gpa-calc-error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 8px;
    display: none;
    padding: 10px;
    border-radius: 5px;
    background-color: #fde8e8;
    border-right: 4px solid #e74c3c;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (max-width: 600px) {
    .gpa-calc-container {
        padding: 25px;
    }

    .gpa-calc-title {
        font-size: 2em;
    }

    .gpa-calc-display {
        flex-direction: column;
    }

    .gpa-calc-item:first-child {
        border-left: none;
        border-bottom: 1px solid #e1e8ed;
    }
}