/* Colombian Grade Calculator Styles */
/* Scoped to prevent theme conflicts */

.cgc-calculator * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cgc-calculator {
    line-height: 1.6;
}

.cgc-container {
    margin: 0 auto;
    padding: 30px 20px;
    max-width: 1200px;
}

.cgc-input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.cgc-input-group {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cgc-input-group:hover {
    border-color: #25DD85;
    box-shadow: 0 6px 20px rgba(37, 221, 133, 0.15);
    transform: translateY(-2px);
}

.cgc-input-group h3 {
    color: #FC00C1;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(252, 0, 193, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
}

.cgc-form-group {
    margin-bottom: 22px;
}

.cgc-form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.98rem;
}

.cgc-form-group input,
.cgc-form-group select {
    width: 100%;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #2c3e50 !important;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.cgc-form-group input:focus,
.cgc-form-group select:focus {
    outline: none;
    border-color: #FC00C1;
    background: white;
    box-shadow: 0 0 0 4px rgba(252, 0, 193, 0.15);
    transform: translateY(-1px);
}

.cgc-form-group input::placeholder {
    color: #999;
}

.cgc-add-grade-btn {
    background: linear-gradient(45deg, #25DD85, #1fb86d);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.cgc-add-grade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 221, 133, 0.3);
}

.cgc-add-grade-btn:active {
    transform: translateY(0);
}

.cgc-grades-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 15px;
}

.cgc-grades-list::-webkit-scrollbar {
    width: 8px;
}

.cgc-grades-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cgc-grades-list::-webkit-scrollbar-thumb {
    background: #25DD85;
    border-radius: 10px;
}

.cgc-grades-list::-webkit-scrollbar-thumb:hover {
    background: #1fb86d;
}

.cgc-grade-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #25DD85;
    transition: all 0.2s ease;
}

.cgc-grade-entry:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.cgc-grade-entry span {
    font-weight: 500;
    color: #333;
}

.cgc-delete-btn {
    background: #FC00C1;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.cgc-delete-btn:hover {
    background: #d100a0;
    transform: scale(1.05);
}

.cgc-delete-btn:active {
    transform: scale(0.95);
}

.cgc-calculate-btn {
    background: linear-gradient(135deg, #FC00C1, #25DD85);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    transition: all 0.3s ease;
    width: 100%;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(252, 0, 193, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cgc-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(252, 0, 193, 0.5);
}

.cgc-calculate-btn:active {
    transform: translateY(0);
}

.cgc-results {
    background: white;
    border: 3px solid #25DD85;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 6px 20px rgba(37, 221, 133, 0.15);
}

.cgc-results h3 {
    color: #FC00C1;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(252, 0, 193, 0.1);
    font-size: 1.5rem;
    font-weight: 700;
}

.cgc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e9ecef;
}

.cgc-result-item:last-child {
    border-bottom: none;
}

.cgc-result-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
}

.cgc-result-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.cgc-result-value.excellent {
    color: #25DD85;
}

.cgc-result-value.good {
    color: #1fb86d;
}

.cgc-result-value.acceptable {
    color: #FC00C1;
}

.cgc-result-value.insufficient {
    color: #d100a0;
}

.cgc-result-value.deficient {
    color: #FC00C1;
}

.cgc-result-value.error {
    color: #FC00C1;
}

.cgc-study-recommendation {
    background: rgba(37, 221, 133, 0.05);
    border: 2px solid #25DD85;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.cgc-study-recommendation h4 {
    color: #FC00C1;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cgc-study-recommendation p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cgc-warning {
    background: rgba(252, 0, 193, 0.05);
    border: 2px solid #FC00C1;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    color: #d100a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cgc-error {
    background: rgba(252, 0, 193, 0.05);
    border: 2px solid #FC00C1;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    color: #d100a0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cgc-success-message {
    background: rgba(37, 221, 133, 0.05);
    border: 1px solid #25DD85;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    color: #1fb86d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cgc-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cgc-alert-box {
    background: white;
    border: 2px solid #FC00C1;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 350px;
    max-width: 80%;
    animation: cgcFadeIn 0.3s ease;
}

.cgc-alert-box h3 {
    color: #FC00C1;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.cgc-alert-box p {
    color: #333;
    font-size: 14px;
    margin: 10px 0 20px 0;
    line-height: 1.5;
}

.cgc-alert-box button {
    background: linear-gradient(45deg, #FC00C1, #d100a0);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cgc-alert-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(252, 0, 193, 0.3);
}

.cgc-alert-box button:active {
    transform: scale(0.95);
}

@keyframes cgcFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cgc-weight-display {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 16px;
    border-radius: 10px;
    margin-top: 15px;
    border: 2px solid #e0e0e0;
}

.cgc-weight-display label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.cgc-weight-display span {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cgc-container {
        padding: 20px 10px;
    }

    .cgc-input-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cgc-input-group h3 {
        font-size: 1.2rem;
    }

    .cgc-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cgc-result-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .cgc-input-group {
        padding: 20px;
    }

    .cgc-calculate-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .cgc-alert-box {
        width: 90%;
    }
}