.weighted-grades-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.weighted-grades-container--result-sticky {
    padding-top: 100px;
}

.weighted-grades-result {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.weighted-grades-result--sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 15px 20px;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.weighted-grades-result__label {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.weighted-grades-result--sticky .weighted-grades-result__label {
    font-size: 14px;
    margin-bottom: 8px;
}

.weighted-grades-result__value {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.weighted-grades-result--sticky .weighted-grades-result__value {
    font-size: 36px;
}

@media (max-width: 600px) {
    .weighted-grades-result__value {
        font-size: 48px;
    }
    
    .weighted-grades-result__label {
        font-size: 16px;
    }
}

.weighted-grades-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.weighted-grades-inputs {
    margin-bottom: 25px;
}

.weighted-grades-table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.weighted-grades-input-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    padding: 10px 0;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.weighted-grades-input-row:hover {
    background-color: #f8f9fa;
}

.weighted-grades-input-number {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    background: #f0f0f0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #667eea;
    margin-bottom: 7px;
    align-self: flex-end;
}


.weighted-grades-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.weighted-grades-input-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.weighted-grades-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 0;
}

.weighted-grades-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.weighted-grades-remove-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    line-height: 1;
    padding: 0;
    margin-bottom: 5px;
}

.weighted-grades-remove-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

.weighted-grades-remove-btn:active {
    transform: scale(0.95);
}

.weighted-grades-add-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.weighted-grades-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.weighted-grades-add-btn:active {
    transform: translateY(0);
}

.weighted-grades-form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.weighted-grades-add-btn {
    flex: 1;
    min-width: 200px;
}

.weighted-grades-clear-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    background: #f5f5f5;
    color: #888;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    min-width: 150px;
}

.weighted-grades-clear-btn:hover {
    background: #eeeeee;
    color: #666;
    border-color: #d0d0d0;
}

.weighted-grades-clear-btn:active {
    background: #e8e8e8;
}

@media (max-width: 600px) {
    .calc__section {
        padding: 0 15px;
    }

    .weighted-grades-input-row {
        gap: 5px;
    }

    .weighted-grades-table-container {
        padding: 10px;
        gap: 5px;
    }
    
    .weighted-grades-remove-btn {
        height: 45px;
        margin-bottom: 2px;
    }
    
    .weighted-grades-container {
        padding: 10px;
    }
    
    .weighted-grades-form {
        padding: 10px 5px;
    }
    
    .weighted-grades-form-actions {
        flex-direction: column;
    }
    
    .weighted-grades-add-btn,
    .weighted-grades-clear-btn {
        width: 100%;
        min-width: auto;
    }
}

